Skip to content

Commit b931677

Browse files
Trying to get tests working on Windows
1 parent 35645e6 commit b931677

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/specs/version-hooks.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ chai.should();
1212

1313
describe.only("npm version hooks", () => {
1414
before("Delete npm.cmd from node_modules on Windows", () => {
15+
// https://github.com/istanbuljs/nyc/issues/760
1516
if (process.platform === "win32") {
1617
let npmNames = ["npm", "npm.js", "npm.cmd", "npm-cli", "npm-cli.js", "npm-cli.cmd"];
1718
for (let npmName of npmNames) {
1819
try {
19-
fs.unlinkSync(path.join("node_modules", ".bin", npmName));
20+
fs.unlinkSync(path.join("node_modules", "npm", "bin", npmName));
2021
console.log(`Deleting ${npmName}: SUCCESS`);
2122
}
2223
catch (error) {

0 commit comments

Comments
 (0)