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
because the package.json mocha script has to be run with --exit
--exit
for the last test/test suite after() and afterEach() are prematurely terminated and never finish
after()
afterEach()
The text was updated successfully, but these errors were encountered:
unfortunately i'm getting around this by creating a test file test/z/z.test.js. (the funny names are for -g [name] flag)
test/z/z.test.js
-g [name]
describe('sleep, so asyncs can finish', () => { const sleep = (ms) => { return new Promise((resolve) => setTimeout(resolve, ms)); }; let alreadySlept = false; it('MINIMUM sleep 2s', async function () { if (alreadySlept) return; this.timeout(3000); await sleep(2000); alreadySlept = true; }); it('BASIC sleep 2s', async function () { if (alreadySlept) return; this.timeout(3000); await sleep(2000); alreadySlept = true; }); it('INTEGRATION sleep 2s', async function () { if (alreadySlept) return; this.timeout(3000); await sleep(2000); alreadySlept = true; }); });
Sorry, something went wrong.
No branches or pull requests
because the package.json mocha script has to be run with
--exit
for the last test/test suite
after()
andafterEach()
are prematurely terminated and never finishThe text was updated successfully, but these errors were encountered: