diff --git a/packages/jest/test/jest-fast-check.spec.ts b/packages/jest/test/jest-fast-check.spec.ts index 64c84b9d815..3cb032b9fd1 100644 --- a/packages/jest/test/jest-fast-check.spec.ts +++ b/packages/jest/test/jest-fast-check.spec.ts @@ -54,7 +54,7 @@ describe.each([ ])('$specName', ({ runnerName, useWorkers, testRunner }) => { const options = { useWorkers, testRunner }; - it.concurrent('should pass on successful no prop mode', async () => { + it('should pass on successful no prop mode', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner('successful no prop', () => { @@ -70,7 +70,7 @@ describe.each([ expect(out).toMatch(/[√✓] successful no prop/); }); - it.concurrent('should fail on failing no prop mode', async () => { + it('should fail on failing no prop mode', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner('failing no prop', () => { @@ -87,7 +87,7 @@ describe.each([ }); if (useWorkers) { - it.concurrent('should fail on property blocking the main thread', async () => { + it('should fail on property blocking the main thread', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop([fc.nat()], { timeout: 500 })('property block main thread', () => { @@ -104,7 +104,7 @@ describe.each([ }); } - it.concurrent('should pass on truthy synchronous property', async () => { + it('should pass on truthy synchronous property', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop([fc.string(), fc.string(), fc.string()])('property pass sync', (a, b, c) => { @@ -120,7 +120,7 @@ describe.each([ expect(out).toMatch(/[√✓] property pass sync \(with seed=-?\d+\)/); }); - it.concurrent('should pass on truthy asynchronous property', async () => { + it('should pass on truthy asynchronous property', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop([fc.string(), fc.string(), fc.string()])('property pass async', async (a, b, c) => { @@ -137,7 +137,7 @@ describe.each([ expect(out).toMatch(/[√✓] property pass async \(with seed=-?\d+\)/); }); - it.concurrent('should fail on falsy synchronous property', async () => { + it('should fail on falsy synchronous property', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop([fc.nat()])('property fail sync', (a) => { @@ -154,7 +154,7 @@ describe.each([ expect(out).toMatch(/[×✕] property fail sync \(with seed=-?\d+\)/); }); - it.concurrent('should fail on falsy asynchronous property', async () => { + it('should fail on falsy asynchronous property', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop([fc.nat()])('property fail async', async (a) => { @@ -172,7 +172,7 @@ describe.each([ expect(out).toMatch(/[×✕] property fail async \(with seed=-?\d+\)/); }); - it.concurrent('should pass on truthy record-based property', async () => { + it('should pass on truthy record-based property', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop({ a: fc.string(), b: fc.string(), c: fc.string() })('property pass record', ({ a, b, c }) => { @@ -191,7 +191,7 @@ describe.each([ expect(out).toMatch(/[√✓] property pass record \(with seed=-?\d+\)/); }); - it.concurrent('should fail on falsy record-based property', async () => { + it('should fail on falsy record-based property', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop({ a: fc.string(), b: fc.string(), c: fc.string() })('property fail record', ({ a, b, c }) => { @@ -208,7 +208,7 @@ describe.each([ expect(out).toMatch(/[×✕] property fail record \(with seed=-?\d+\)/); }); - it.concurrent('should fail on falsy record-based property with seed', async () => { + it('should fail on falsy record-based property with seed', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop({ a: fc.string(), b: fc.string(), c: fc.string() }, { seed: 4869 })( @@ -226,7 +226,7 @@ describe.each([ expect(out).toMatch(/[×✕] property fail record seeded \(with seed=4869\)/); }); - it.concurrent('should fail with locally requested seed', async () => { + it('should fail with locally requested seed', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop([fc.constant(null)], { seed: 4242 })('property fail with locally requested seed', (_unused) => false); @@ -241,7 +241,7 @@ describe.each([ expect(out).toMatch(/[×✕] property fail with locally requested seed \(with seed=4242\)/); }); - it.concurrent('should fail with globally requested seed', async () => { + it('should fail with globally requested seed', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { fc.configureGlobal({ seed: 4848 }); @@ -257,7 +257,7 @@ describe.each([ expect(out).toMatch(/[×✕] property fail with globally requested seed \(with seed=4848\)/); }); - it.concurrent('should fail with seed requested at jest level', async () => { + it('should fail with seed requested at jest level', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop([fc.constant(null)])('property fail with globally requested seed', (_unused) => false); @@ -273,7 +273,7 @@ describe.each([ }); describe('.skip', () => { - it.concurrent('should never be executed', async () => { + it('should never be executed', async () => { // Arrange const { jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.skip.prop([fc.constant(null)])('property never executed', (_unused) => false); @@ -290,7 +290,7 @@ describe.each([ if (testRunner === undefined) { describe('.failing', () => { - it.concurrent('should fail on successful no prop mode', async () => { + it('should fail on successful no prop mode', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.failing('successful no prop', () => { @@ -306,7 +306,7 @@ describe.each([ expect(out).toMatch(/[×✕] successful no prop/); }); - it.concurrent('should pass on failing no prop mode', async () => { + it('should pass on failing no prop mode', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.failing('failing no prop', () => { @@ -322,7 +322,7 @@ describe.each([ expect(out).toMatch(/[√✓] failing no prop/); }); - it.concurrent('should pass because failing', async () => { + it('should pass because failing', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.failing.prop([fc.constant(null)])('property pass because failing', async (_unused) => false); @@ -336,7 +336,7 @@ describe.each([ expect(out).toMatch(/[√✓] property pass because failing \(with seed=-?\d+\)/); }); - it.concurrent('should fail because passing', async () => { + it('should fail because passing', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.failing.prop([fc.constant(null)])('property fail because passing', async (_unused) => true); @@ -353,7 +353,7 @@ describe.each([ } describe('.concurrent', () => { - it.concurrent('should pass on truthy property', async () => { + it('should pass on truthy property', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.concurrent.prop([fc.constant(null)])('property pass on truthy property', (_unused) => true); @@ -367,7 +367,7 @@ describe.each([ expect(out).toMatch(/[√✓] property pass on truthy property \(with seed=-?\d+\)/); }); - it.concurrent('should fail on falsy property', async () => { + it('should fail on falsy property', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.concurrent.prop([fc.constant(null)])('property fail on falsy property', (_unused) => false); @@ -384,7 +384,7 @@ describe.each([ if (testRunner === undefined) { describe('.failing', () => { - it.concurrent('should pass because failing', async () => { + it('should pass because failing', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.concurrent.failing.prop([fc.constant(null)])( @@ -401,7 +401,7 @@ describe.each([ expect(out).toMatch(/[√✓] property pass because failing \(with seed=-?\d+\)/); }); - it.concurrent('should fail because passing', async () => { + it('should fail because passing', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.concurrent.failing.prop([fc.constant(null)])( @@ -422,7 +422,7 @@ describe.each([ }); describe('timeout', () => { - it.concurrent('should fail as test takes longer than global Jest timeout', async () => { + it('should fail as test takes longer than global Jest timeout', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop([fc.nat()])('property takes longer than global Jest timeout', async () => { @@ -439,7 +439,7 @@ describe.each([ expect(out).toMatch(/[×✕] property takes longer than global Jest timeout/); }); - it.concurrent('should fail as test takes longer than Jest local timeout', async () => { + it('should fail as test takes longer than Jest local timeout', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop([fc.nat()])( @@ -460,7 +460,7 @@ describe.each([ expect(out).toMatch(/[×✕] property takes longer than Jest local timeout/); }); - it.concurrent('should fail as test takes longer than Jest config timeout', async () => { + it('should fail as test takes longer than Jest config timeout', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile( runnerName, @@ -481,7 +481,7 @@ describe.each([ expect(out).toMatch(/[×✕] property takes longer than Jest config timeout/); }); - it.concurrent('should fail as test takes longer than Jest setTimeout', async () => { + it('should fail as test takes longer than Jest setTimeout', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { if (typeof jest !== 'undefined') { @@ -501,7 +501,7 @@ describe.each([ expect(out).toMatch(/[×✕] property takes longer than Jest setTimeout/); }); - it.concurrent('should fail as test takes longer than Jest CLI timeout', async () => { + it('should fail as test takes longer than Jest CLI timeout', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { runner.prop([fc.nat()])('property takes longer than Jest CLI timeout', async () => { @@ -518,7 +518,7 @@ describe.each([ expect(out).toMatch(/[×✕] property takes longer than Jest CLI timeout/); }); - it.concurrent('should fail but favor local Jest timeout over Jest setTimeout', async () => { + it('should fail but favor local Jest timeout over Jest setTimeout', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { if (typeof jest !== 'undefined') { @@ -542,7 +542,7 @@ describe.each([ expect(out).toMatch(/[×✕] property favor local Jest timeout over Jest setTimeout/); }); - it.concurrent('should fail but favor Jest setTimeout over Jest CLI timeout', async () => { + it('should fail but favor Jest setTimeout over Jest CLI timeout', async () => { // Arrange const { specFileName, jestConfigRelativePath } = await writeToFile(runnerName, options, () => { if (typeof jest !== 'undefined') { diff --git a/packages/vitest/test/vitest-fast-check.spec.ts b/packages/vitest/test/vitest-fast-check.spec.ts index 3aeed4dd27b..657e7a22463 100644 --- a/packages/vitest/test/vitest-fast-check.spec.ts +++ b/packages/vitest/test/vitest-fast-check.spec.ts @@ -37,7 +37,7 @@ describe.each([ { specName: 'test', runnerName: 'test' }, { specName: 'it', runnerName: 'it' }, ])('$specName', ({ runnerName }) => { - it.concurrent(`should support ${runnerName}.prop`, async () => { + it(`should support ${runnerName}.prop`, async () => { // Arrange const { specFileName, vitestConfigRelativePath: jestConfigRelativePath } = await writeToFile(runnerName, () => { runner.prop([fc.string(), fc.string(), fc.string()])('property', (a, b, c) => { @@ -53,7 +53,7 @@ describe.each([ }); describe('at depth 1', () => { - it.concurrent(`should support ${runnerName}.concurrent.prop`, async () => { + it(`should support ${runnerName}.concurrent.prop`, async () => { // Arrange const { specFileName, vitestConfigRelativePath: jestConfigRelativePath } = await writeToFile(runnerName, () => { runner.concurrent.prop([fc.string(), fc.string(), fc.string()])('property', (a, b, c) => { @@ -68,7 +68,7 @@ describe.each([ expectPass(out, specFileName); }); - it.concurrent(`should support ${runnerName}.fails.prop`, async () => { + it(`should support ${runnerName}.fails.prop`, async () => { // Arrange const { specFileName, vitestConfigRelativePath: jestConfigRelativePath } = await writeToFile(runnerName, () => { runner.fails.prop([fc.string(), fc.string(), fc.string()])('property', (a, b, c) => { @@ -83,7 +83,7 @@ describe.each([ expectFail(out, specFileName); }); - it.concurrent.skip(`should support ${runnerName}.only.prop`, async () => { + it.skip(`should support ${runnerName}.only.prop`, async () => { // Arrange const { specFileName, vitestConfigRelativePath: jestConfigRelativePath } = await writeToFile(runnerName, () => { runner.only.prop([fc.string(), fc.string(), fc.string()])('property', (a, b, c) => { @@ -98,7 +98,7 @@ describe.each([ expectPass(out, specFileName); }); - it.concurrent(`should support ${runnerName}.skip.prop`, async () => { + it(`should support ${runnerName}.skip.prop`, async () => { // Arrange const { specFileName, vitestConfigRelativePath: jestConfigRelativePath } = await writeToFile(runnerName, () => { runner.skip.prop([fc.string(), fc.string(), fc.string()])('property', (a, b, c) => { @@ -113,7 +113,7 @@ describe.each([ expectSkip(out, specFileName); }); - it.concurrent(`should support ${runnerName}.todo.prop`, async () => { + it(`should support ${runnerName}.todo.prop`, async () => { // Arrange const { specFileName, vitestConfigRelativePath: jestConfigRelativePath } = await writeToFile(runnerName, () => { runner.todo.prop([fc.string(), fc.string(), fc.string()])('property', (a, b, c) => { @@ -130,7 +130,7 @@ describe.each([ }); describe('at depth strictly above 1', () => { - it.concurrent(`should support ${runnerName}.concurrent.fails.prop`, async () => { + it(`should support ${runnerName}.concurrent.fails.prop`, async () => { // Arrange const { specFileName, vitestConfigRelativePath: jestConfigRelativePath } = await writeToFile(runnerName, () => { runner.concurrent.fails.prop([fc.string(), fc.string(), fc.string()])('property', (a, b, c) => { @@ -145,7 +145,7 @@ describe.each([ expectFail(out, specFileName); }); - it.concurrent(`should support ${runnerName}.concurrent.fails.only.prop`, async () => { + it(`should support ${runnerName}.concurrent.fails.only.prop`, async () => { // Arrange const { specFileName, vitestConfigRelativePath: jestConfigRelativePath } = await writeToFile(runnerName, () => { runner.concurrent.fails.only.prop([fc.string(), fc.string(), fc.string()])('property', (a, b, c) => { @@ -160,7 +160,7 @@ describe.each([ expectFail(out, specFileName); }); - it.concurrent(`should support ${runnerName}.concurrent.fails.skip.prop`, async () => { + it(`should support ${runnerName}.concurrent.fails.skip.prop`, async () => { // Arrange const { specFileName, vitestConfigRelativePath: jestConfigRelativePath } = await writeToFile(runnerName, () => { runner.concurrent.fails.skip.prop([fc.string(), fc.string(), fc.string()])('property', (a, b, c) => { @@ -175,7 +175,7 @@ describe.each([ expectSkip(out, specFileName); }); - it.concurrent(`should support ${runnerName}.concurrent.fails.todo.prop`, async () => { + it(`should support ${runnerName}.concurrent.fails.todo.prop`, async () => { // Arrange const { specFileName, vitestConfigRelativePath: jestConfigRelativePath } = await writeToFile(runnerName, () => { runner.concurrent.fails.todo.prop([fc.string(), fc.string(), fc.string()])('property', (a, b, c) => { diff --git a/website/docs/tutorials/detect-race-conditions/snippets.spec.mjs b/website/docs/tutorials/detect-race-conditions/snippets.spec.mjs index f1a72f2485b..9e15038614e 100644 --- a/website/docs/tutorials/detect-race-conditions/snippets.spec.mjs +++ b/website/docs/tutorials/detect-race-conditions/snippets.spec.mjs @@ -69,7 +69,7 @@ describe('Playground', () => { for (const [specLabel, specCode] of Object.entries(allQueueSpecs)) { const expectedSuccess = snippet.greenTests.includes(specLabel); const friendlyStatus = expectedSuccess ? 'pass' : 'fail'; - it.concurrent(`should ${friendlyStatus} on ${specLabel}`, async () => { + it(`should ${friendlyStatus} on ${specLabel}`, async () => { const seed = Math.random().toString(16).substring(2); const testDirectoryName = `test-${seed}`; const testDirectoryPath = path.join(generatedTestsDirectory, testDirectoryName);