I am trying to run two it blocks in parallel
describe('First test', () => {
it.concurrent('This runs with concurrent', async ({ expect }) => {
let count = 0;
await vi.waitUntil(() => {
count += 1; return count === 10;
}, { timeout: 10000, interval: 500 });
expect(true).toBeTruthy();
});
it.concurrent('This also runs with concurrent', async ({ expect }) => {
let count = 0;
await vi.waitUntil(() => {
count += 1; return count === 10;
}, { timeout: 10000, interval: 500 });
expect(true).toBeTruthy();
});
});
this is according to Vitest docs
I also tried describe.concurrent which also supposed to work according to Vitest
this is my config:
export default defineConfig({
test: {
watch: false,
pool: 'forks',
testTimeout: 7200000,
reporters: ['default', new AllureReporter({})],
},
});
The result is that only the first it runs
I guess it is something in config that supposed to support this but I could not find any explanation in their docs