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 29
29
" README.md"
30
30
],
31
31
"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 " ,
33
33
"build:deps" : " cd ../ruby-wasm-wasi && npm run build" ,
34
34
"build:static:files" : " ../ruby-wasm-wasi/tools/pack-static-files.sh ./dist" ,
35
35
"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 39
39
],
40
40
"license" : " MIT" ,
41
41
"scripts" : {
42
+ "test:run:all" : " npm run test:run && ENABLE_COMPONENT_TESTS=1 npm run test:run" ,
42
43
"test:run" : " npm run test:unit && npm run test:vitest -- --run && npm run test:e2e" ,
43
44
"test:vitest" : " vitest ./test/" ,
44
45
"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) => {
212
212
};
213
213
214
214
const 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);
220
221
}
221
222
}
222
223
};
You can’t perform that action at this time.
0 commit comments