forked from GridPlus/gridplus-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
33 lines (32 loc) · 835 Bytes
/
vite.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
// vite.config.ts
import * as path from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
build: {
lib: {
entry: path.resolve(__dirname, 'src/index.ts'),
name: 'gridplus-sdk',
fileName: (format) => `gridplus-sdk.${format}.js`,
},
rollupOptions: {
external: [],
output: {
globals: {},
},
},
},
test: {
coverage: {
reporter: ['lcov'],
},
update: false,
reporters: ['default'],
globals: true,
testTimeout: 120000,
threads: false,
setupFiles: ['./src/__test__/utils/setup.ts'],
/** connect.test.ts is excluded because it is still a WIP (https://github.com/GridPlus/gridplus-sdk/issues/420) */
exclude: ['./src/__test__/integration/connect.test.ts'],
watchExclude: ['**/*.json'],
},
});