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
The previous test file: api.test.js had a test with a webpack compilation that was not being completed before the test file finished. In api.test.js, jest.spyOn is applied to the done hook of compilations. The problem was that the very first test of the next test file being run (getFilenameFromUrl.test.js) was not getting its done hook called, making the test fail. This problem was solved in the test files by forcing api.test.js to wait for compilation completion.
This problem could be caused by jest itself, or possibly by how webpack@next hooks are handled.
I could not reproduce the problem locally. It consistently happened on CI.
Expected Behavior
Different test files with different webpack compilations should not affect one another
Actual Behavior
See: #674 (comment)
The previous test file:
api.test.js
had a test with a webpack compilation that was not being completed before the test file finished. Inapi.test.js
,jest.spyOn
is applied to thedone
hook of compilations. The problem was that the very first test of the next test file being run (getFilenameFromUrl.test.js
) was not getting itsdone
hook called, making the test fail. This problem was solved in the test files by forcingapi.test.js
to wait for compilation completion.This problem could be caused by jest itself, or possibly by how webpack@next hooks are handled.
I could not reproduce the problem locally. It consistently happened on CI.
How Do We Reproduce?
See: #674 (comment)
The text was updated successfully, but these errors were encountered: