Skip to content

Commit

Permalink
file config @vitest + vite server options browser
Browse files Browse the repository at this point in the history
update @vitest + vite server options  browser
  • Loading branch information
Dargon789 committed Jun 1, 2024
1 parent 85d4712 commit a2f6d2e
Show file tree
Hide file tree
Showing 4 changed files with 2,946 additions and 5,996 deletions.
26 changes: 26 additions & 0 deletions config/vitest.browser.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { defineConfig } from 'vitest/config'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
import wasm from 'vite-plugin-wasm'

const config = defineConfig({
test: {
browser: {
enabled: true,
name: 'chrome',
headless: true,
fileParallelism: false,
isolate: false
},
},
plugins: [
wasm(),
nodePolyfills({
include: ['util', 'fs', 'buffer', 'path'],
}),
],
optimizeDeps: {
exclude: ['kzg-wasm'],
},
})

export default config
Loading

0 comments on commit a2f6d2e

Please sign in to comment.