forked from solana-foundation/framework-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
31 lines (29 loc) · 904 Bytes
/
vitest.config.ts
File metadata and controls
31 lines (29 loc) · 904 Bytes
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
import { resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { defineConfig } from 'vitest/config';
const workspaceRoot = fileURLToPath(new URL('.', import.meta.url));
export default defineConfig({
root: workspaceRoot,
test: {
globals: true,
environment: 'node',
environmentMatchGlobs: [
['packages/react-hooks/**', 'jsdom'],
['examples/**', 'jsdom'],
],
include: ['{packages,examples,tests}/**/*.{test,spec}.{ts,tsx}'],
setupFiles: './vitest.setup.ts',
passWithNoTests: true,
coverage: {
reporter: ['text', 'lcov'],
reportsDirectory: './coverage',
include: ['packages/**/*.{ts,tsx}', 'examples/**/*.{ts,tsx}', 'tests/**/*.{ts,tsx}'],
},
},
resolve: {
alias: {
'@solana/client': resolve(workspaceRoot, 'packages/client/src/index.ts'),
'@solana/web3-compat': resolve(workspaceRoot, 'packages/web3-compat/src/index.ts'),
},
},
});