File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1515 # - osx
1616 - windows
1717
18- script : npm run test
18+ script : npm run coverage
1919
2020after_success :
2121 # send code-coverage data to Coveralls
Original file line number Diff line number Diff line change 11"use strict" ;
22
3+ const fs = require ( "fs" ) ;
34const cli = require ( "../fixtures/cli" ) ;
45const mocks = require ( "../fixtures/mocks" ) ;
56const files = require ( "../fixtures/files" ) ;
@@ -9,6 +10,16 @@ const chai = require("chai");
910chai . should ( ) ;
1011
1112describe . only ( "npm version hooks" , ( ) => {
13+ before ( "Delete npm.cmd from node_modules on Windows" , ( ) => {
14+ if ( process . platform === "win32" ) {
15+ fs . unlinkSync ( "node_modules\\.bin\\npm" ) ;
16+ fs . unlinkSync ( "node_modules\\.bin\\npm.js" ) ;
17+ fs . unlinkSync ( "node_modules\\.bin\\npm.cmd" ) ;
18+ fs . unlinkSync ( "node_modules\\.bin\\npm-cli" ) ;
19+ fs . unlinkSync ( "node_modules\\.bin\\npm-cli.js" ) ;
20+ fs . unlinkSync ( "node_modules\\.bin\\npm-cli.cmd" ) ;
21+ }
22+ } ) ;
1223
1324 it ( "should run the preversion script before updating the version number" , ( ) => {
1425 files . create ( "package.json" , {
You can’t perform that action at this time.
0 commit comments