summaryrefslogtreecommitdiff
path: root/bunfig.toml
blob: 3434f70817d32b45d883f1e1172f78919cdd9c23 (plain) (blame)
1
2
3
4
5
6
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"]