Files
fil/e2e/wasm/vitest.config.local.ts
Henrik Jess Nielsen b4c07d3693
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s
Nomad changes
2026-06-01 23:40:55 +02:00

26 lines
677 B
TypeScript
Generated

// Local vitest configuration to handle WASM imports
import { defineConfig, mergeConfig } from "vitest/config";
import baseConfig from "./vitest.config";
export default mergeConfig(
baseConfig,
defineConfig({
test: {
// Use the default Node.js test environment with WASM support
env: {
// Mock out WASI imports
env: JSON.stringify({}),
},
// Limit parallelism to reduce memory spikes from V8 WASM isolates
fileParallelism: false,
isolate: false,
},
resolve: {
alias: {
env: new URL("./wasi-polyfill.js", import.meta.url).pathname,
wasi_snapshot_preview1: new URL("./wasi-polyfill.js", import.meta.url).pathname,
},
},
}),
);