Skip to content

Commit

Permalink
added test:bundle:esm:node:app
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta authored and ukrbublik committed May 25, 2022
1 parent 65125c9 commit 167a705
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"test:integration": "jest --config ./jest.integration.js",
"test:bundle:esm:browser": "cross-env BUNDLE_ENV=browser NODE_OPTIONS=--experimental-vm-modules jest --config ./jest.esm.mjs",
"test:bundle:esm:node": "cross-env BUNDLE_ENV=node NODE_OPTIONS=--experimental-vm-modules jest --config ./jest.esm.mjs",
"test:bundle:esm:node:app": "yarn workspace @okta/test.app.node-esm start",
"test:bundle:cjs": "cross-env BUNDLE_ENV=node jest --config ./jest.cjs.js",
"build": "node scripts/build.js",
"build:cdn": "cross-env NODE_ENV=production webpack --config webpack.cdn.config.js",
Expand Down
5 changes: 5 additions & 0 deletions scripts/unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ if ! yarn test:bundle:esm:node; then
exit ${TEST_FAILURE}
fi

if ! yarn test:bundle:esm:node:app; then
echo "ESM node app failed to start! Exiting..."
exit ${TEST_FAILURE}
fi

if ! yarn test:bundle:cjs; then
echo "validate cjs bundle failed! Exiting..."
exit ${TEST_FAILURE}
Expand Down

0 comments on commit 167a705

Please sign in to comment.