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
21.2.0
Microsoft Windows NT 10.0.19045.0 x64
test_runner
Create a /test/foo.test.js file:
import assert from "node:assert"; import { describe, it } from "node:test"; describe("A", () => { it("A1", () => { assert.strictEqual(1, 1); }); it("A2", () => { assert.strictEqual(1, 1); }); }); describe("B", () => { it("B1", () => { assert.strictEqual(1, 1); }); it("B2", () => { assert.strictEqual(1, 1); }); });
Run node --test
node --test
Always.
I expect each suite to be executed one time.
Each suite is execute twice.
I wondered if it was related to number of describe, i've tried with this code:
describe
describe("A", () => { it("A1", () => { assert.strictEqual(1, 1); }); it("A2", () => { assert.strictEqual(1, 1); }); }); describe("B", () => { it("B1", () => { assert.strictEqual(1, 1); }); it("B2", () => { assert.strictEqual(1, 1); }); }); describe("C", () => { it("C1", () => { assert.strictEqual(1, 1); }); it("C2", () => { assert.strictEqual(1, 1); }); });
It's still execute each tests twice.
The text was updated successfully, but these errors were encountered:
Sounds like a duplicate of #50875, which has been fixed and should be released soon.
Sorry, something went wrong.
Alright, thanks
No branches or pull requests
Version
21.2.0
Platform
Microsoft Windows NT 10.0.19045.0 x64
Subsystem
test_runner
What steps will reproduce the bug?
Create a /test/foo.test.js file:
Run
node --test
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
I expect each suite to be executed one time.
What do you see instead?
Each suite is execute twice.
Additional information
I wondered if it was related to number of
describe
, i've tried with this code:It's still execute each tests twice.
The text was updated successfully, but these errors were encountered: