Skip to content

Commit db711a0

Browse files
committed
add test
1 parent 260cfd1 commit db711a0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import '../common/index.mjs';
2+
import { spec as SpecReporter } from 'node:test/reporters';
3+
import assert from 'node:assert';
4+
5+
const reporter = new SpecReporter();
6+
let output = '';
7+
8+
reporter.on('data', (chunk) => {
9+
output += chunk;
10+
});
11+
12+
reporter.write({
13+
type: 'test:watch:restarted',
14+
});
15+
16+
reporter.end();
17+
18+
assert.match(output, /Restarted at .+/);

0 commit comments

Comments
 (0)