Skip to content

Commit 627eda0

Browse files
committed
chore: fix tests for latest tap
1 parent 119faf6 commit 627eda0

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

cli/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@
4848
"lib/"
4949
],
5050
"tap": {
51-
"nyc-arg": [
52-
"--exclude",
53-
"tap-snapshots/**"
54-
]
51+
"allow-incomplete-coverage": true
5552
}
5653
}

cli/test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const mockBuild = async (t, {releases = getReleases(), packument = {}, testdir:
6666
return yaml.stringify(children).replace(new RegExp(`/cli/${id}/`, 'g'), '/')
6767
}
6868

69-
const build = t.mock('../lib/build', {
69+
const build = t.mockRequire('../lib/build', {
7070
pacote: {
7171
...pacote,
7272
packument: async () => {

cli/test/transform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const t = require('tap')
22
const fm = require('front-matter')
33

44
const transform = ({id, path}) => {
5-
const Transform = t.mock('../lib/transform', {
5+
const Transform = t.mockRequire('../lib/transform', {
66
'../lib/gh.js': {nwo: 'npm/cli'},
77
})
88
const transformed = Transform.sync('---\n---\n', {

0 commit comments

Comments
 (0)