You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 2 projects and each of them works well when run separatelly.
But I need them run in parallel so I put them into projects key in my jest config.
Since that test process does not work properly
To Reproduce
run test separatelly:
npx jest ./jest.unit-test.config.js
npx jest ./jest.puppeteer.config.js
enshure that they work well
$ npx jest --config ./jest.unit-test.config.js
PASS unit-tests src/common/App.test.js
Home Page test
√ renders correctly (45ms)
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 1 passed, 1 total
Time: 4.8s
Ran all test suites.
$ npx jest --config ./jest.puppeteer.config.js
PASS puppeteer-tests src/common/App.test.pptr.js (7.717s)
Home Page
√ should load without error (12ms)
√ should display mouse position (28ms)
√ should use fake timers (80ms)
Test Suites: 1 passed, 1 total
Tests: 3 passed, 3 total
Snapshots: 0 total
Time: 7.927s
Ran all test suites.
FAIL puppeteer-tests src/common/App.test.pptr.js
● Test suite failed to run
connect ECONNREFUSED 127.0.0.1:56872
PASS unit-tests src/common/App.test.js
Test Suites: 1 failed, 1 passed, 2 total
Tests: 1 passed, 1 total
Snapshots: 1 passed, 1 total
Time: 5.81s
Ran all test suites in 2 projects.
further worse
try to remove one of the projects from the projects array - no one work at all
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
I have 2 projects and each of them works well when run separatelly.
But I need them run in parallel so I put them into
projects
key in my jest config.Since that test process does not work properly
To Reproduce
run test separatelly:
enshure that they work well
$ npx jest --config ./jest.puppeteer.config.js PASS puppeteer-tests src/common/App.test.pptr.js (7.717s) Home Page √ should load without error (12ms) √ should display mouse position (28ms) √ should use fake timers (80ms) Test Suites: 1 passed, 1 total Tests: 3 passed, 3 total Snapshots: 0 total Time: 7.927s Ran all test suites.
main test config is:
run main test with the projects
further worse
Expected behavior
I need to run these projects in parallel
Link to repl or repo (highly encouraged)
Here is the repo
Run
npx envinfo --preset jest
The text was updated successfully, but these errors were encountered: