Skip to content

Commit

Permalink
* Fix tests
Browse files Browse the repository at this point in the history
* Change | to && in package.json
  • Loading branch information
sulkaharo committed Aug 30, 2022
1 parent a6eb156 commit ec3cf94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"bundle": "webpack --mode production --config webpack/webpack.config.js && npm run-script generate-keys",
"bundle-dev": "webpack --mode development --config webpack/webpack.config.js && npm run-script generate-keys",
"bundle-analyzer": "webpack --mode development --config webpack/webpack.config.js --profile --json > stats.json && webpack-bundle-analyzer stats.json",
"generate-keys": "mkdir node_modules/.cache/_ns_cache | node bin/generateRandomString.js >node_modules/.cache/_ns_cache/randomString",
"generate-keys": "mkdir node_modules/.cache/_ns_cache && node bin/generateRandomString.js >node_modules/.cache/_ns_cache/randomString",
"coverage": "cat ./coverage/lcov.info | env-cmd -f ./tests/ci.test.env codacy-coverage || echo NO COVERAGE",
"dev": "env-cmd -f ./my.env nodemon --inspect lib/server/server.js 0.0.0.0",
"dev-test": "env-cmd -f ./my.devtest.env nodemon --inspect lib/server/server.js 0.0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/admintools.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('admintools', function ( ) {
before(function (done) {
benv.setup(function() {

benv.require(__dirname + '/../tmp/public/js/bundle.app.js');
benv.require(__dirname + '/../node_modules/.cache/_ns_cache/public/js/bundle.app.js');

self.$ = $;

Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/headless.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function headless (benv, binding) {

console.log('Setting up benv', Date.now() - t);

benv.require(__dirname + '/../../tmp/public/js/bundle.app.js');
benv.require(__dirname + '/../../node_modules/.cache/_ns_cache/public/js/bundle.app.js');

console.log('Bundle loaded', Date.now() - t);

Expand Down

0 comments on commit ec3cf94

Please sign in to comment.