Skip to content

Commit 8c3dd7e

Browse files
committed
test: reorder test files fixtures for better understanding
1 parent a0f3ed8 commit 8c3dd7e

18 files changed

Lines changed: 71 additions & 30 deletions

File tree

test/fixtures/test-runner/index.test.js renamed to test/fixtures/test-runner/combined-stream-output/index.test.js

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('invalid tap output');

test/fixtures/test-runner/nested.js renamed to test/fixtures/test-runner/combined-stream-output/nested.js

File renamed without changes.
File renamed without changes.

test/fixtures/test-runner/default-behavior/node_modules/test-nm.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import test from 'node:test';
2+
3+
test('this should fail', () => {
4+
throw new Error('this is a failing test');
5+
});

test/fixtures/test-runner/default-behavior/subdir/subdir_test.js

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
'use strict';
2+
const test = require('node:test');
3+
4+
test('this should pass');

test/fixtures/test-runner/test/skip_by_name.cjs renamed to test/fixtures/test-runner/default-behavior/test/skip_by_name.cjs

File renamed without changes.

test/fixtures/test-runner/index.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)