Skip to content

Commit

Permalink
chore: fix tests for latest tap
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Aug 13, 2024
1 parent ce3dbe0 commit 14dd79e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
"lib/"
],
"tap": {
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
"allow-incomplete-coverage": true
}
}
2 changes: 1 addition & 1 deletion cli/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const mockBuild = async (t, {releases = getReleases(), packument = {}, testdir:
return yaml.stringify(children).replace(new RegExp(`/cli/${id}/`, 'g'), '/')
}

const build = t.mock('../lib/build', {
const build = t.mockRequire('../lib/build', {
pacote: {
...pacote,
packument: async () => {
Expand Down
2 changes: 1 addition & 1 deletion cli/test/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const t = require('tap')
const fm = require('front-matter')

const transform = ({id, path}) => {
const Transform = t.mock('../lib/transform', {
const Transform = t.mockRequire('../lib/transform', {
'../lib/gh.js': {nwo: 'npm/cli'},
})
const transformed = Transform.sync('---\n---\n', {
Expand Down

0 comments on commit 14dd79e

Please sign in to comment.