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
Wait for the bundle to be built and tests to run. The tests should succeed.
Now modify the spec file such that the tests would fail: sed -i 's/toBe([0-9])/toBe(9)/p' src/one.spec.js.
Expected Behavior
After step 3, the new bundle should be run and fail:
HeadlessChrome 71.0.3578 (Mac OS X 10.13.6) one should equal 1 FAILED
Error: Expected 1 to be 9.
at <Jasmine>
at UserContext.it (webpack:///./src/one.spec.js?:7:58)
at <Jasmine>
HeadlessChrome 71.0.3578 (Mac OS X 10.13.6): Executed 1 of 1 (1 FAILED) ERROR (0.003 secs / 0.003 secs)
If re-run npm run test command, I see the expected result: the tests fail.
Actual Behavior
Although I can see that webpack recompiled the bundle and the reported hash changed, the build succeeds as if it would run the original (unmodified) tests.
Scenario
npm run test
sed -i 's/toBe([0-9])/toBe(9)/p' src/one.spec.js
.Expected Behavior
After step 3, the new bundle should be run and fail:
If re-run
npm run test
command, I see the expected result: the tests fail.Actual Behavior
Although I can see that webpack recompiled the bundle and the reported hash changed, the build succeeds as if it would run the original (unmodified) tests.
Code
How Do We Reproduce?
npm run test
sed -i 's/toBe([0-9])/toBe(9)/' src/one.spec.js
.Full Log
The text was updated successfully, but these errors were encountered: