-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvitest.config.ts
38 lines (37 loc) · 992 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
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference types="vitest" />
import { resolve } from 'path';
import { defineConfig } from 'vitest/config';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [vue()],
test: {
include: ['**/*.spec.ts'],
environment: 'jsdom',
coverage: {
provider: 'v8',
all: false,
clean: true,
thresholds: {
'packages/component/**/src/*.{ts,vue}': {
branches: 60,
functions: 60,
lines: 60,
statements: 60
}
}
},
server: {
deps: {
external: ['@prestashopcorp/puik-theme']
}
}
},
resolve: {
alias: {
'@prestashopcorp/puik-theme/assets': resolve(__dirname, './packages/theme/assets'),
'@prestashopcorp/puik-theme/src': resolve(__dirname, './packages/theme/src'),
'@prestashopcorp/puik-theme': resolve(__dirname, './packages/theme/dist')
}
}
});