Skip to content

Commit

Permalink
test(wasm-api): remove WASM test files, update test script alias
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Nov 11, 2024
1 parent 7bbd928 commit 4a2e751
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/wasm-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
"pub": "yarn npm publish --access public",
"test": "zig test zig/tests.zig && bun test",
"test:build-zig-allocators": "zig build-exe -fno-entry -fstrip --stack 4096 -OReleaseSmall -target wasm32-freestanding --dep wasmapi -Mroot=test/allocators.zig -Mwasmapi=zig/lib.zig --name allocators -rdynamic --import-symbols && wasm-dis -o allocators.wast allocators.wasm && mv allocators.wasm test",
"test:build-zig-custom": "zig build-exe -fno-entry -fstrip --stack 4096 -OReleaseSmall -target wasm32-freestanding --dep wasmapi -Mroot=test/custom.zig -Mwasmapi=zig/lib.zig --name custom -rdynamic --import-symbols && wasm-dis -o custom.wast custom.wasm && mv custom.wasm test",
"test": "zig test zig/tests.zig && yarn test:build-zig && bun test",
"test:build-zig-allocators": "zig build-exe -fno-entry -fstrip --stack 4096 -OReleaseSmall -target wasm32-freestanding --dep wasm-api -Mroot=test/allocators.zig -Mwasm-api=zig/lib.zig --name allocators -rdynamic --import-symbols && wasm-dis -o allocators.wast allocators.wasm && mv allocators.wasm test",
"test:build-zig-custom": "zig build-exe -fno-entry -fstrip --stack 4096 -OReleaseSmall -target wasm32-freestanding --dep wasm-api -Mroot=test/custom.zig -Mwasm-api=zig/lib.zig --name custom -rdynamic --import-symbols && wasm-dis -o custom.wast custom.wasm && mv custom.wasm test",
"test:build-zig": "yarn test:build-zig-allocators && yarn test:build-zig-custom",
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
},
Expand Down
Binary file removed packages/wasm-api/test/allocators.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/wasm-api/test/allocators.zig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Import JS core API
const js = @import("wasmapi");
const js = @import("wasm-api");
const std = @import("std");

var HEAP: [1024]u8 = undefined;
Expand Down
Binary file removed packages/wasm-api/test/custom.wasm
Binary file not shown.

0 comments on commit 4a2e751

Please sign in to comment.