forked from fedimint/fedimint-web-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.workspace.ts
36 lines (35 loc) · 892 Bytes
/
vitest.workspace.ts
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
31
32
33
34
35
36
import { defineWorkspace } from 'vitest/config'
import wasm from 'vite-plugin-wasm'
export default defineWorkspace([
{
plugins: [wasm()],
test: {
environment: 'happy-dom',
name: 'core',
include: ['packages/core-web/**/*.test.ts'],
exclude: ['packages/create-fedimint-app/**/*.test.ts'],
browser: {
enabled: true,
headless: true,
// name: 'chrome',
name: 'chromium',
provider: 'playwright',
ui: false, // no ui for the core library
api: {
port: 63315,
},
screenshotFailures: false,
},
},
},
{
test: {
name: 'cli',
environment: 'happy-dom',
include: ['packages/create-fedimint-app/__tests__/*.test.ts'],
exclude: ['packages/create-fedimint-app/__tests__/subfolder'],
isolate: true,
testTimeout: 20000,
},
},
])