-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvitest.config.base.ts
More file actions
36 lines (35 loc) · 930 Bytes
/
vitest.config.base.ts
File metadata and controls
36 lines (35 loc) · 930 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
32
33
34
35
36
import { defineProject } from 'vitest/config';
import path from 'path';
export default defineProject({
resolve: {
alias: [
{
find: /^@hiero-did-sdk\/(.*)$/,
replacement: path.resolve(__dirname, 'packages') + '/$1/src',
},
{
// Properly resolve deep imports from Hiero SDK JS
find: /^@hiero-ledger\/sdk\/(.*)$/,
replacement: path.resolve(__dirname, 'node_modules', '@hiero-ledger/sdk') + '/$1',
},
],
},
test: {
hookTimeout: 30000,
testTimeout: 30000,
include: ['**/*.spec.ts', '**/*.e2e.ts'],
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{webpack,vite,vitest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*',
],
globals: true,
isolate: true,
sequence: {
concurrent: false,
},
clearMocks: true,
mockReset: false,
},
});