diff options
Diffstat (limited to 'bunfig.toml')
| -rw-r--r-- | bunfig.toml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 00000000..3434f708 --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,7 @@ +# The published opencut-wasm package is wasm-pack bundler-target glue that +# imports its .wasm as an ESM module with instance exports, which bun's test +# runner does not instantiate. Register a faithful pure-TS stand-in before any +# test module evaluates so tests importing `@/wasm` (directly or transitively) +# can run. See the preload file for details. +[test] +preload = ["./apps/web/src/test-utils/mock-opencut-wasm.ts"] |
