-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: enable WASM support * chore: add docs and changeset
- Loading branch information
1 parent
1205605
commit 8ca46a4
Showing
4 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@callstack/reassure-cli': patch | ||
'reassure': patch | ||
--- | ||
|
||
feat: Experimental options to enable WebAssembly (--enable-wasm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: Troubleshooting | ||
sidebar_position: 5 | ||
--- | ||
|
||
### Handling `ReferenceError: WebAssembly is not defined` | ||
|
||
Reassure, by default, uses Node.js's `--jitless` flag to disable its optimizing compiler to increase test stability. This flag prevents WebAssembly (WASM) from running because of internal Node.js architecture. In some cases, you might still allow your tests to include code depending on WASM, e.g., the `fetch` method is implemented using WASM. | ||
|
||
In such cases, pass the `--enable-wasm` flag to Reassure CLI: | ||
|
||
```sh | ||
$ reassure --enable-wasm | ||
``` | ||
|
||
This option will replace the Node.js `--jitless` flag with alternative flags to achieve a similar stabilizing effect. | ||
|
||
Note that this option is experimental and may negatively affect the stability of your tests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters