fix(live-server): testing#1331
Merged
JosefBredereck merged 17 commits intopattern-lab:devfrom Jun 21, 2021
Merged
Conversation
"Uncaught AssertionError [ERR_ASSERTION]: version not found" the package got renamed with commit 420f3ea
it's not clear why those conditions shouldn't get negated for that specific testing scenario
instead of the changed behavior by version 4
JosefBredereck
requested changes
Jun 21, 2021
…/patternlab-node into fix-live-server-testing
JosefBredereck
approved these changes
Jun 21, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes:
I've identified that the tests for the
live-serversubpackage tend to fail (not just partly like before, but due to bigger problems in total).It seems to be especially about two code changes that have been introduced with commit f56ba66 that would need to get further analyzed (both executed via
yarn run test:separate:33) spa tests spa-ignore-assets should not redirect .css: TypeError: Cannot read property 'address' of undefined at Test.serverAddress (/Users/maximilianfranzke/Sites/patternlab-node-fork/node_modules/supertest/lib/test.js:55:18) at new Test (/Users/maximilianfranzke/Sites/patternlab-node-fork/node_modules/supertest/lib/test.js:36:12) at Object.obj.<computed> [as get] (/Users/maximilianfranzke/Sites/patternlab-node-fork/node_modules/supertest/index.js:25:14) at Context.<anonymous> (test/spa.js:36:40) at processImmediate (internal/timers.js:439:21)Additionally I've fixed these further aspects:
1) basic functional tests should not inject script into svg files: Error: injected code not found at test/acceptance.js:44:17 at Test._assertFunction (/Users/maximilianfranzke/Sites/patternlab-node-fork/node_modules/supertest/lib/test.js:281:11) at Test.assert (/Users/maximilianfranzke/Sites/patternlab-node-fork/node_modules/supertest/lib/test.js:171:18) at assert (/Users/maximilianfranzke/Sites/patternlab-node-fork/node_modules/supertest/lib/test.js:131:12) at /Users/maximilianfranzke/Sites/patternlab-node-fork/node_modules/supertest/lib/test.js:128:5 at Test.Request.callback (/Users/maximilianfranzke/Sites/patternlab-node-fork/node_modules/superagent/lib/node/index.js:716:12) at /Users/maximilianfranzke/Sites/patternlab-node-fork/node_modules/superagent/lib/node/index.js:916:18 at IncomingMessage.<anonymous> (/Users/maximilianfranzke/Sites/patternlab-node-fork/node_modules/superagent/lib/node/parsers/image.js:10:5) at endReadableNT (_stream_readable.js:1183:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)@JosefBredereck do you have the chance to have a look whether those two changes to your previously checked in code with commit f56ba66 are fine for you?
The following code changes are mainly minor changes, but remaining to have the tests run smoothly again:
Solutions
cliconditions on "serving string not found", as searching for the string starting at the beginning in relation to this error message works correctly if this condition is being negated.ESLintfeedback, to finally let the test cases run through smoothly (didn't wanted to open a new issue / merge request for those simple, but related "fixes").Retest
To retest the changes out of this release: