Skip to content

Commit

Permalink
fix tests for node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 27, 2023
1 parent fb3f6b3 commit 3fe8c76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 49 deletions.
48 changes: 0 additions & 48 deletions tap-snapshots/test/run/dump-config.js.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -110,54 +110,6 @@ watch: false
`

exports[`test/run/dump-config.js TAP package.json parsing bad > output 1`] = `
after: null
bail: false
before: null
branches: 100
browser: true
changed: false
check-coverage: true
color: false
comments: false
coverage: false
coverage-map: null
coverage-report: []
debug: false
files: []
flow: false
functions: 100
grep: []
help: false
invert: false
jobs: {number}
jsx: false
libtap-settings: null
lines: 100
node-arg: []
nyc-arg: []
nyc-help: false
nyc-version: false
only: false
output-dir: null
output-file: null
parser-version: false
rcfile: {CWD}/cli-tests/.taprc
reporter: tap
reporter-arg: []
save: null
save-fixture: false
show-process-tree: false
statements: 100
test-arg: []
test-env: []
test-ignore: $.
test-regex: ((\\/|^)(tests?|__tests?__)\\/.*|\\.(tests?|spec)|^\\/?tests?)\\.([mc]js|[jt]sx?)$
timeout: 30
ts: false
version: false
versions: false
watch: false
`

Expand Down
3 changes: 2 additions & 1 deletion test/run/dump-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ t.test('package.json parsing', t => {
run(['--dump-config', '-B'], {
cwd: dir,
}, (er, o) => {
t.equal(er, null)
// this throws on later nodes, because it can't load properly
if (c !== 'bad') t.equal(er, null)
t.matchSnapshot(o, 'output')
t.end()
})
Expand Down

0 comments on commit 3fe8c76

Please sign in to comment.