-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
41 lines (40 loc) · 990 Bytes
/
vitest.config.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
37
38
39
40
41
import { resolve } from 'path';
import { configDefaults, defineConfig } from 'vitest/config';
export default defineConfig({
test: {
setupFiles: ['testSetup.ts'],
exclude: [...configDefaults.exclude, 'temp']
},
resolve: {
alias: [
{
find: '@middy/core',
replacement: resolve(
__dirname,
'src/layers/nodejs/node_modules/@middy/core'
)
},
{
find: '@middy/validator',
replacement: resolve(
__dirname,
'src/layers/nodejs/node_modules/@middy/validator'
)
},
{
find: '@middy/http-header-normalizer',
replacement: resolve(
__dirname,
'src/layers/nodejs/node_modules/@middy/http-header-normalizer'
)
},
{
find: '@middy/http-json-body-parser',
replacement: resolve(
__dirname,
'src/layers/nodejs/node_modules/@middy/http-json-body-parser'
)
}
]
}
});