Skip to content

Commit

Permalink
update dir prep test to work in clean env
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 29, 2019
1 parent 7aae69c commit 7e4950b
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tap-snapshots/test-dir.js-TAP.test.js
Expand Up @@ -128,7 +128,7 @@ Object {

exports[`test/dir.js TAP with prepare script > extract 1`] = `
Object {
"integrity": "sha512-xUCDNBpGrK4uuS6LLf6c367HTkNF9+ljWScpTI/d+/Qc5izFR/HxyxALO7fP4Vlr09qiPKZPxrjmav3s8Fs4UQ==",
"integrity": "sha512-HTzPAt8wmXNchUdisnGDSCuUgrFee5v8F6GsLc5mQd29VXiNzv4PGz71jjLSIF1wWQSB+UjLTmSJSGznF/s/Lw==",
"resolved": "\${CWD}/test/fixtures/prepare-script",
}
`
Expand Down
46 changes: 46 additions & 0 deletions test/fixtures/prepare-script/node_modules/abbrev/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions test/fixtures/prepare-script/node_modules/abbrev/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 61 additions & 0 deletions test/fixtures/prepare-script/node_modules/abbrev/abbrev.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions test/fixtures/prepare-script/node_modules/abbrev/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/prepare-script/prepare.js
@@ -1,4 +1,4 @@
require('abbrev')
require('./node_modules/abbrev')
const fs = require('fs')
fs.writeFileSync(__dirname + '/index.js', `
// abbrev should not be here in production!
Expand Down

0 comments on commit 7e4950b

Please sign in to comment.