Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 14 additions & 0 deletions .github/workflows/node-aught.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Tests: node.js < 10'

on: [pull_request, push]

permissions:
contents: read

jobs:
tests:
uses: ljharb/actions/.github/workflows/node-majors.yml@main
with:
range: '>= 0.8 < 10'
command: npm test
skip-ls-check: true
13 changes: 13 additions & 0 deletions .github/workflows/node-tens.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Tests: node.js 10 - 20'

on: [pull_request, push]

permissions:
contents: read

jobs:
tests:
uses: ljharb/actions/.github/workflows/node-majors.yml@main
with:
range: '>= 10 < 20'
command: npm test
13 changes: 13 additions & 0 deletions .github/workflows/node-twenties.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Tests: node.js >= 20'

on: [pull_request, push]

permissions:
contents: read

jobs:
tests:
uses: ljharb/actions/.github/workflows/node-majors.yml@main
with:
range: '>= 20'
command: npm test
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build
test
.travis.yml
.github
54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

13 changes: 13 additions & 0 deletions test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,19 @@ if (global.Symbol) {
knownGlobals.push(Symbol);
}

// Globals introduced in later Node.js versions. Guard on presence so this
// harness keeps working when run on newer releases.
if (global.queueMicrotask) knownGlobals.push(queueMicrotask);
if (global.structuredClone) knownGlobals.push(structuredClone);
if (global.atob) knownGlobals.push(atob);
if (global.btoa) knownGlobals.push(btoa);
if (global.performance) knownGlobals.push(performance);
if (global.fetch) knownGlobals.push(fetch);
if (global.navigator) knownGlobals.push(navigator);
if (global.crypto) knownGlobals.push(crypto);
if (global.localStorage) knownGlobals.push(localStorage);
if (global.sessionStorage) knownGlobals.push(sessionStorage);

if (process.env.NODE_TEST_KNOWN_GLOBALS) {
var knownFromEnv = process.env.NODE_TEST_KNOWN_GLOBALS.split(',');
allowGlobals.apply(undefined, _toConsumableArray(knownFromEnv));
Expand Down