We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c69df commit 72db45eCopy full SHA for 72db45e
test/e2e.test.mjs
@@ -7,6 +7,7 @@ const __dirname = import.meta.dirname || new URL('.', import.meta.url).pathname;
7
const NODE_MAJOR_VERSION = parseInt(process.versions.node.split('.')[0], 10);
8
9
function runTest(...paths) {
10
+ console.time('Test Run');
11
const file = join(...paths);
12
const args = NODE_MAJOR_VERSION === 22 ? ['--experimental-async-context-frame', file] : [file];
13
const result = spawnSync('node', args);
@@ -23,12 +24,16 @@ function runTest(...paths) {
23
24
}
25
26
- console.log('Test stdout:', stdoutLines);
27
+ if (stdoutLines.length > 0) {
28
+ console.log('stdout:', stdoutLines);
29
+ }
30
if (stderrLines.length > 0) {
- console.log('Test stderr:', stderrLines);
31
+ console.log('stderr:', stderrLines);
32
33
- return { status: result.status, stdoutLines, trace: trace };
34
+ console.timeEnd('Test Run');
35
+
36
+ return { status: result.status, stdoutLines, trace };
37
38
39
describe('e2e Tests', { timeout: 60000 }, () => {
0 commit comments