Skip to content

Commit

Permalink
Add Wasmtime flags for stable memory unit testing (#54)
Browse files Browse the repository at this point in the history
* Add Wasmtime flags for stable memory unit testing

* Fix

* Include NaN canonicalization

* 0.12.0

* Update package-lock.json
  • Loading branch information
rvanasa authored Nov 11, 2023
1 parent 82fab33 commit e19c785
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 46 deletions.
88 changes: 44 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mo-dev",
"version": "0.11.2",
"version": "0.12.0",
"description": "A live reload development server for Motoko smart contracts.",
"author": "DFINITY Foundation (https://dfinity.org)",
"license": "Apache-2.0",
Expand Down
7 changes: 6 additions & 1 deletion src/testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,12 @@ async function runTest(
);
const wasmtimeResult = await execa(
'wasmtime',
[basename(wasmPath)],
[
basename(wasmPath),
'--enable-cranelift-nan-canonicalization',
'--wasm-features',
'multi-memory,bulk-memory',
],
{
cwd: dirname(path),
reject: false,
Expand Down

0 comments on commit e19c785

Please sign in to comment.