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
test.concurrent() appears to run any synchronous code in the test function when nested inside a describe.skip() block.
This code is not run for it() nested inside a describe.skip() block.
This code is not run for test.concurrent.skip().
This can be particularly problematic in integration tests where some functions can have side effects.
To Reproduce
A small example to reproduce:
describe.skip("When in a describe.skip() block",()=>{it.concurrent("it.concurrent() code should not run",async()=>{console.log("This (concurrent) line should never be run");awaitnewPromise((resolve)=>setTimeout(resolve,0));console.log("This async (concurrent) line should never be run");fail();});it("it() code should not run",async()=>{console.log("This (non-concurrent) line should never be run");fail();});});describe("When in a describe() block",()=>{it.concurrent("it.concurrent() tests should be run",async()=>{expect(true).toBe(true);});it("it() tests should be run",async()=>{expect(true).toBe(true);});});
The output of jest --verbose is:
Expected behavior
I would expect the behaviour of the following examples to be identical:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
test.concurrent()
appears to run any synchronous code in the test function when nested inside adescribe.skip()
block.it()
nested inside adescribe.skip()
block.test.concurrent.skip()
.To Reproduce
A small example to reproduce:
The output of
jest --verbose
is:Expected behavior
I would expect the behaviour of the following examples to be identical:
Link to repl or repo (highly encouraged)
The example above should be sufficient.
envinfo
The text was updated successfully, but these errors were encountered: