Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
5cbc0ff
fix(ext/node): align node:test `it`/`describe` with Node and enable p…
nathanwhit Apr 27, 2026
96508fe
Merge remote-tracking branch 'upstream/main' into fix/node-compat-iter50
nathanwhit Apr 27, 2026
fb802ef
test: format multi-line entries for new windows:false gates
nathanwhit Apr 27, 2026
c1713a1
test: drop 3 more failing tests from #33593
nathanwhit Apr 27, 2026
54e309b
test: drop flaky test-inspector-debug-async-hook from #33593
nathanwhit Apr 27, 2026
4490357
test: gate 3 Windows-failing tests in #33593
nathanwhit Apr 27, 2026
820e0cb
test: gate 2 more Windows-failing tests in #33593
nathanwhit Apr 28, 2026
11bdfad
test: drop test-esm-loader-hooks-inspect-brk from #33593
nathanwhit Apr 28, 2026
7d1d73e
test: gate test-child-process-send-utf8 on windows in #33593
nathanwhit Apr 28, 2026
6c42a21
Merge remote-tracking branch 'upstream/main' into fix/node-compat-iter50
nathanwhit Apr 28, 2026
e236b44
Merge remote-tracking branch 'upstream/main' into fix/node-compat-iter50
nathanwhit Apr 28, 2026
b89139e
Merge remote-tracking branch 'upstream/main' into fix/node-compat-iter50
nathanwhit Apr 28, 2026
043a8be
Merge remote-tracking branch 'upstream/main' into fix/node-compat-iter50
nathanwhit Apr 28, 2026
fa8d8cc
Merge remote-tracking branch 'upstream/main' into fix/node-compat-iter50
nathanwhit Apr 28, 2026
eab8313
Merge remote-tracking branch 'upstream/main' into fix/node-compat-iter50
nathanwhit Apr 28, 2026
0e3ae08
Merge remote-tracking branch 'upstream/main' into fix/node-compat-iter50
nathanwhit Apr 28, 2026
7671a10
Merge remote-tracking branch 'upstream/main' into fix/node-compat-iter50
nathanwhit Apr 28, 2026
7ff2af5
test: drop windows-failing tests from #33593
nathanwhit Apr 28, 2026
c446313
test: drop tests not directly related to it/describe alias change
nathanwhit Apr 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 6 additions & 31 deletions ext/node/polyfills/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,20 +374,6 @@ test.only = function only(name, options, fn) {
return test(name, options, fn, { only: true });
};

export function describe(name, options, fn) {
return suite(name, options, fn, {});
}

describe.skip = function skip(name, options, fn) {
return suite.skip(name, options, fn);
};
describe.todo = function todo(name, options, fn) {
return suite.todo(name, options, fn);
};
describe.only = function only(name, options, fn) {
return suite.only(name, options, fn);
};

export function suite(name, options, fn, overrides) {
if (currentSuite) {
return currentSuite.addSuite(name, options, fn, overrides);
Expand All @@ -405,21 +391,10 @@ suite.only = function only(name, options, fn) {
return suite(name, options, fn, { only: true });
};

export function it(name, options, fn) {
return test(name, options, fn, {});
}

it.skip = function skip(name, options, fn) {
return test.skip(name, options, fn);
};

it.todo = function todo(name, options, fn) {
return test.todo(name, options, fn);
};

it.only = function only(name, options, fn) {
return test.only(name, options, fn);
};
// Match Node: `it` is just an alias for `test`, and `describe` for `suite`.
// See https://github.com/nodejs/node/blob/main/lib/test.js
export const it = test;
export const describe = suite;

export function before() {
notImplemented("test.before");
Expand All @@ -437,8 +412,8 @@ export function afterEach() {
notImplemented("test.afterEach");
}

test.it = it;
test.describe = describe;
test.it = test;
test.describe = suite;
test.suite = suite;

// Store all active mocks for restoreAll()
Expand Down
Loading
Loading