Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"lint": "run-s lint:prettier lint:eslint",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"lint:prettier": "prettier --check \"{src,test,scripts}/**/*.ts\"",
"test": "node test/scripts/ensure-browser-bundle.js && cross-env PORT=1337 jest",
"test": "node test/scripts/ensure-bundles.js && cross-env PORT=1337 jest",
"test:watch": "jest --watch"
},
"volta": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,13 @@ function ensureBrowserBundle() {
}
}

function ensureWasmBundle() {
if (!fs.existsSync('build/bundles/wasm.js')) {
// eslint-disable-next-line no-console
console.warn('\nWARNING: Missing wasm bundle. Bundle will be created before running wasm integration tests.');
execSync('yarn build:bundle');
}
}

ensureBrowserBundle();
ensureWasmBundle();