• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Flags: --test-reporter=dot
2'use strict';
3process.stdout.columns = 30;
4
5const test = require('node:test');
6const { setTimeout } = require('timers/promises');
7
8for (let i = 0; i < 100; i++) {
9  test(i + ' example', async () => {
10    if (i === 0) {
11      // So the reporter will run before all tests has started
12      await setTimeout(10);
13    }
14    // resize
15    if (i === 28)
16      process.stdout.columns = 41;
17  });
18}
19