Skip to content

Commit 0310b7b

Browse files
authored
chore: tests should not inherit --ignore-scripts flag from `npm run t… (#422)
CI is currently failing in `main`. This aims to resolve it. It was tricky to figure out the difference because I don't usually run `npm test` with `--ignore-scripts` locally.
1 parent bf1f60f commit 0310b7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/git.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// `npm test --ignore-scripts` overrides any local options, so we need to remove it from the env
2+
delete process.env.npm_config_ignore_scripts
3+
14
const t = require('tap')
25
const fs = require('node:fs')
36
const http = require('node:http')

0 commit comments

Comments
 (0)