We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In watch mode, snap-shot-it cannot seem to recover from a syntax error in a test file
Minimal reproduce:
// example.spec.js it('errors' () => { ] // syntax error })
// example2.spec.js const snapshot = require('snap-shot-it') it('should work', ()=>{ snapshot('foobar') })
$ npx mocha *.spec.js --watch
current behavior: After correcting the error, snap-shot-it will continue to fail with the same error above:
Error: Missing current test, cannot make snapshot at snapshot (node_modules/snap-shot-it/src/index.js:87:11) at Context.it (example2.spec.js:5:2)
expected: After correcting the error, all tests will pass
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug
In watch mode, snap-shot-it cannot seem to recover from a syntax error in a test file
Minimal reproduce:
$ npx mocha *.spec.js --watch
current behavior:
After correcting the error, snap-shot-it will continue to fail with the same error above:
expected:
After correcting the error, all tests will pass
The text was updated successfully, but these errors were encountered: