-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
30 lines (29 loc) · 1.02 KB
/
vitest.config.ts
File metadata and controls
30 lines (29 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { defineConfig } from 'vitest/config';
import path from 'path';
import wasm from 'vite-plugin-wasm';
import topLevelAwait from 'vite-plugin-top-level-await';
export default defineConfig({
plugins: [
wasm(),
topLevelAwait(),
],
resolve: {
alias: {
'@veaba/qrcode-js': path.resolve(__dirname, 'packages/qrcode-js/src/index.ts'),
'@veaba/qrcode-js-shared': path.resolve(__dirname, 'packages/qrcode-js-shared/dist/index.js'),
'@veaba/qrcode-wasm': path.resolve(__dirname, 'packages/qrcode-wasm/src/index.ts'),
'@veaba/qrcode-wasm/qrcodes': path.resolve(__dirname, 'packages/qrcode-wasm/pkg/qrcodes.js'),
},
},
test: {
include: ['tests/**/*.test.{ts,js}'],
exclude: ['**/node_modules/**', '**/dist/**', '**/*.browser.test.{ts,js}', '**/demo*.{ts,js}'],
testTimeout: 10000,
hookTimeout: 10000,
coverage: {
provider: 'v8',
include: ['tests/**/*.ts', 'tests/**/*.js'],
exclude: ['**/node_modules/**', '**/dist/**', '**/*.test.{ts,js}'],
},
},
});