File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 2929 " README.md"
3030 ],
3131 "scripts" : {
32- "test" : " RUBY_NPM_PACKAGE_ROOT=../ruby-head-wasm-wasi npm -C ../ruby-wasm-wasi run test:run" ,
32+ "test" : " RUBY_NPM_PACKAGE_ROOT=../ruby-head-wasm-wasi npm -C ../ruby-wasm-wasi run test:run:all " ,
3333 "build:deps" : " cd ../ruby-wasm-wasi && npm run build" ,
3434 "build:static:files" : " ../ruby-wasm-wasi/tools/pack-static-files.sh ./dist" ,
3535 "build:static:compat" : " ../ruby-wasm-wasi/tools/pack-compat-shim.mjs --dist=./dist --pkg=ruby-head-wasm-wasi" ,
Original file line number Diff line number Diff line change 3939 ],
4040 "license" : " MIT" ,
4141 "scripts" : {
42+ "test:run:all" : " npm run test:run && ENABLE_COMPONENT_TESTS=1 npm run test:run" ,
4243 "test:run" : " npm run test:unit && npm run test:vitest -- --run && npm run test:e2e" ,
4344 "test:vitest" : " vitest ./test/" ,
4445 "test:unit" : " ./tools/run-test-unit.mjs" ,
Original file line number Diff line number Diff line change @@ -212,11 +212,12 @@ const test = async (instantiate) => {
212212};
213213
214214const main = async () => {
215- await test(instantiateNodeWasi);
216- if (! process.env.RUBY_ROOT) {
217- await test(instantiateBrowserWasi);
218- if (process.env.ENABLE_COMPONENT_TESTS && process.env.ENABLE_COMPONENT_TESTS ! == ' false' ) {
219- await test(instantiateComponent);
215+ if (process.env.ENABLE_COMPONENT_TESTS && process.env.ENABLE_COMPONENT_TESTS ! == ' false' ) {
216+ await test(instantiateComponent);
217+ } else {
218+ await test(instantiateNodeWasi);
219+ if (! process.env.RUBY_ROOT) {
220+ await test(instantiateBrowserWasi);
220221 }
221222 }
222223};
You can’t perform that action at this time.
0 commit comments