-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
29 lines (28 loc) · 1.01 KB
/
Copy pathvitest.config.ts
File metadata and controls
29 lines (28 loc) · 1.01 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
import { fileURLToPath } from 'url'
import { defineConfig } from 'vitest/config'
import { buildDefines } from './build-info.mjs'
export default defineConfig({
define: buildDefines(),
resolve: {
alias: [
{ find: '@peerly/core/react', replacement: fileURLToPath(new URL('./packages/core/src/react.ts', import.meta.url)) },
{ find: '@peerly/core', replacement: fileURLToPath(new URL('./packages/core/src/index.ts', import.meta.url)) },
],
},
test: {
environment: 'node',
include: ['src/**/*.test.{ts,tsx}', 'packages/core/src/**/*.test.ts', 'worker/**/*.test.mjs'],
coverage: {
provider: 'v8',
reporter: ['text', 'json-summary'],
include: [
'packages/core/src/deviceIdentity.ts',
'packages/core/src/oidcDeviceBinding.ts',
'packages/core/src/peerIdentityHandshake.ts',
'packages/core/src/signedControl.ts',
'src/collab/friendInvite.ts',
],
thresholds: { lines: 70, functions: 70, statements: 70, branches: 65 },
},
},
})