Skip to content

Commit e903735

Browse files
committed
Add tests
1 parent 6349a34 commit e903735

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "module"
3+
}

test/child-process/fixtures/test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import test from 'ava';
2+
3+
for (let i = 0; i < 50; i++) {
4+
test("Test " + (i + 1), (t) => {
5+
t.true(true);
6+
});
7+
}

test/child-process/test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import test from '@ava/test';
2+
3+
import {fixture} from '../helpers/exec.js';
4+
5+
// Regression test for https://github.com/avajs/ava/issues/3390
6+
test('running 50 tests in a child process works as expected', async t => {
7+
const result = await fixture(['--no-worker-threads']);
8+
t.is(result.stats.passed.length, 50);
9+
});

0 commit comments

Comments
 (0)