-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathvitest.config.ts
More file actions
65 lines (63 loc) · 1.98 KB
/
vitest.config.ts
File metadata and controls
65 lines (63 loc) · 1.98 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import path from 'node:path'
import { defineConfig } from 'vitest/config'
const isLinuxCi = process.platform === 'linux' && process.env.CI === 'true'
export default defineConfig({
resolve: {
alias: [
{
find: '@src',
replacement: path.resolve(__dirname, 'packages/core/src'),
},
{
find: '@arrow-js/core/internal',
replacement: path.resolve(__dirname, 'packages/core/src/internal.ts'),
},
{
find: '@arrow-js/core',
replacement: path.resolve(__dirname, 'packages/core/src/index.ts'),
},
{
find: '@arrow-js/framework/internal',
replacement: path.resolve(__dirname, 'packages/framework/src/internal.ts'),
},
{
find: '@arrow-js/framework/ssr',
replacement: path.resolve(__dirname, 'packages/framework/src/ssr.ts'),
},
{
find: '@arrow-js/framework',
replacement: path.resolve(__dirname, 'packages/framework/src/index.ts'),
},
{
find: '@arrow-js/ssr',
replacement: path.resolve(__dirname, 'packages/ssr/src/index.ts'),
},
{
find: '@arrow-js/hydrate',
replacement: path.resolve(__dirname, 'packages/hydrate/src/index.ts'),
},
{
find: '@arrow-js/highlight',
replacement: path.resolve(__dirname, 'packages/highlight/src/index.ts'),
},
{
find: '@arrow-js/sandbox',
replacement: path.resolve(__dirname, 'packages/sandbox/src/index.ts'),
},
{
find: '@arrow-js/compiler',
replacement: path.resolve(__dirname, 'packages/compiler/src/index.ts'),
},
{
find: '@arrow-js/vite-plugin-arrow',
replacement: path.resolve(__dirname, 'packages/vite-plugin-arrow/src/index.js'),
},
],
},
test: {
environment: 'jsdom',
fileParallelism: !isLinuxCi,
include: ['packages/**/*.spec.ts', 'tests/**/*.spec.ts'],
exclude: ['tests/e2e/**', 'tests/sandbox-e2e/**', '**/node_modules/**'],
},
})