Update dependencies & other minor tweaks
* Update dependencies * Ignore snapshot fixture due to churn * Remove errant log * Update GHA actions * Test type definition with TS 5.3 * Select latest LTS in Volta * Remove unnecessary npx invocation * Rebuild lockfile * Work around legacy tap-based tests choking on our tsconfig.json No idea why it's even resolving the config when there are no TypeScript tests to run.
This commit is contained in:
parent
cac1d1fe64
commit
88e433376a
11 changed files with 541 additions and 414 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
|
@ -18,13 +18,13 @@ jobs:
|
|||
node-version: [^18.18, ^20.8, ^21]
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Enable symlinks
|
||||
if: matrix.os == 'windows-latest'
|
||||
run: |
|
||||
git config core.symlinks true
|
||||
git reset --hard
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: npm
|
||||
|
|
@ -41,10 +41,10 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
ts-version: [~5.2]
|
||||
ts-version: [~5.2, ~5.3]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: package.json
|
||||
cache: npm
|
||||
|
|
@ -59,8 +59,8 @@ jobs:
|
|||
name: Test package-lock for unexpected modifications
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: package.json
|
||||
cache: npm
|
||||
|
|
@ -79,8 +79,8 @@ jobs:
|
|||
name: Install dependencies without using a lockfile
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: package.json
|
||||
- run: npm install --no-package-lock --no-audit
|
||||
|
|
@ -91,8 +91,8 @@ jobs:
|
|||
name: Lint source files
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: package.json
|
||||
cache: npm
|
||||
|
|
|
|||
9
.taprc
9
.taprc
|
|
@ -1,7 +1,8 @@
|
|||
disable-coverage: true
|
||||
allow-empty-coverage: true
|
||||
files:
|
||||
- "test-tap/*.js"
|
||||
- "test-tap/reporters/*.js"
|
||||
- "test-tap/integration/*.js"
|
||||
include:
|
||||
- test-tap/*.js
|
||||
- test-tap/reporters/*.js
|
||||
- test-tap/integration/*.js
|
||||
timeout: 300
|
||||
tsconfig: test-tap/tsconfig.json
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ module.exports = {
|
|||
'test/**/fixtures',
|
||||
'test-tap/fixture/snapshots/test-sourcemaps/build/**',
|
||||
'test-tap/fixture/report/edgecases/ast-syntax-error.cjs',
|
||||
'test-tap/fixture/**/*.ts',
|
||||
'test-types',
|
||||
'examples/typescript-*/**/*.ts',
|
||||
],
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import v8 from 'node:v8';
|
|||
import arrify from 'arrify';
|
||||
import figures from 'figures';
|
||||
import yargs from 'yargs';
|
||||
import {hideBin} from 'yargs/helpers'; // eslint-disable-line n/file-extension-in-import
|
||||
import {hideBin} from 'yargs/helpers';
|
||||
|
||||
import {asyncEventIteratorFromApi} from './api-event-iterator.js';
|
||||
import Api from './api.js';
|
||||
|
|
|
|||
901
package-lock.json
generated
901
package-lock.json
generated
File diff suppressed because it is too large
Load diff
12
package.json
12
package.json
|
|
@ -83,7 +83,7 @@
|
|||
"typescript"
|
||||
],
|
||||
"dependencies": {
|
||||
"@vercel/nft": "^0.24.3",
|
||||
"@vercel/nft": "^0.24.4",
|
||||
"acorn": "^8.11.2",
|
||||
"acorn-walk": "^8.3.0",
|
||||
"ansi-styles": "^6.2.1",
|
||||
|
|
@ -103,7 +103,7 @@
|
|||
"debug": "^4.3.4",
|
||||
"emittery": "^1.0.1",
|
||||
"figures": "^6.0.1",
|
||||
"globby": "^13.2.2",
|
||||
"globby": "^14.0.0",
|
||||
"ignore-by-default": "^2.1.0",
|
||||
"indent-string": "^5.0.0",
|
||||
"is-plain-object": "^5.0.0",
|
||||
|
|
@ -128,16 +128,16 @@
|
|||
"@ava/test": "github:avajs/test",
|
||||
"@ava/typescript": "^4.1.0",
|
||||
"@sindresorhus/tsconfig": "^5.0.0",
|
||||
"@types/node": "^20.8.10",
|
||||
"@types/node": "^20.10.3",
|
||||
"ansi-escapes": "^6.2.0",
|
||||
"c8": "^8.0.1",
|
||||
"execa": "^8.0.1",
|
||||
"expect": "^29.7.0",
|
||||
"sinon": "^17.0.1",
|
||||
"tap": "^18.5.7",
|
||||
"tap": "^18.6.1",
|
||||
"tempy": "^3.1.0",
|
||||
"tsd": "^0.29.0",
|
||||
"typescript": "~5.2.2",
|
||||
"typescript": "~5.3.2",
|
||||
"xo": "^0.56.0",
|
||||
"zen-observable": "^0.10.0"
|
||||
},
|
||||
|
|
@ -150,6 +150,6 @@
|
|||
}
|
||||
},
|
||||
"volta": {
|
||||
"node": "20.8.1"
|
||||
"node": "20.10.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,6 @@ set -ex
|
|||
|
||||
npx xo
|
||||
npx tsc --noEmit
|
||||
npx c8 --report=none npx test-ava
|
||||
npx c8 --report=none --no-clean npx tap
|
||||
npx c8 --report=none test-ava
|
||||
npx c8 --report=none --no-clean tap
|
||||
npx c8 report
|
||||
|
|
|
|||
2
test-tap/tsconfig.json
Normal file
2
test-tap/tsconfig.json
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
// Empty config file so that TAP doesn't choke on ours.
|
||||
{}
|
||||
|
|
@ -10,7 +10,6 @@ const snapshotStdout = (t, stdout) => {
|
|||
.replaceAll(/\/{3}/g, '//')
|
||||
.replaceAll(/(\b)at.*\n/g, '$1at ---\n');
|
||||
|
||||
t.log(process.versions.node.split('.')[0]);
|
||||
t.snapshot(normalized);
|
||||
};
|
||||
|
||||
|
|
|
|||
1
test/snapshot-order/fixtures/randomness/.gitignore
vendored
Normal file
1
test/snapshot-order/fixtures/randomness/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
test.js.snap
|
||||
Binary file not shown.
Loading…
Reference in a new issue