-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove tap 16 specific config when using tap 18
- Loading branch information
1 parent
17ea62d
commit 74331b4
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
const t = require('tap') | ||
const setup = require('../setup.js') | ||
|
||
t.test('tap@18', async (t) => { | ||
const s = await setup(t, { | ||
ok: true, | ||
package: { | ||
devDependencies: { | ||
tap: '^18', | ||
}, | ||
}, | ||
}) | ||
|
||
await s.apply() | ||
const pkg = await s.readJson('package.json') | ||
t.strictSame(pkg.tap, {}) | ||
}) | ||
|
||
t.test('tap@16', async (t) => { | ||
const s = await setup(t, { | ||
ok: true, | ||
package: { | ||
devDependencies: { | ||
tap: '^16', | ||
}, | ||
}, | ||
}) | ||
|
||
await s.apply() | ||
const pkg = await s.readJson('package.json') | ||
t.strictSame(pkg.tap, { | ||
'nyc-arg': [ | ||
'--exclude', | ||
'tap-snapshots/**', | ||
], | ||
}) | ||
}) |