Skip to content

Commit

Permalink
Chore: package-tester improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed May 13, 2021
1 parent 7e83bc4 commit d5d868b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .mocharc.bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
"color": true,
"full-trace": true,
"recursive": true,
"grep": "#no-pack",
"invert": true,
"require": ["./tests-init.js"]
}
8 changes: 5 additions & 3 deletions bin/pack-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ async function run(tarFilePath) {
'test' : `ENTRY="${path.join(...nodeModulesPath)}" mocha --config .mocharc.json tests.js`
},
'dependencies' : {
[packajeInfo.name] : tarFilePath
[packajeInfo.name] : tarFilePath,
...packajeInfo.peerDependencies
},
'devDependencies' : TEST_MODULES.reduce((prev, cur) => ({
[cur] : packajeInfo.devDependencies[cur],
Expand All @@ -62,8 +63,9 @@ async function run(tarFilePath) {
resolveOnly : [ new RegExp(resolveIgnoreRegexp) ]
}),
commonjs({
include : [ /node_modules/ ],
sourceMap : false
include : [ /node_modules/ ],
sourceMap : false,
ignoreDynamicRequires : true
}),
json({
include : 'node_modules/**',
Expand Down

0 comments on commit d5d868b

Please sign in to comment.