-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.ts
More file actions
77 lines (76 loc) · 1.9 KB
/
Copy pathvite.config.ts
File metadata and controls
77 lines (76 loc) · 1.9 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
66
67
68
69
70
71
72
73
74
75
76
77
import path from 'node:path'
import { defineConfig } from 'vp'
import { playwright } from 'vp/test/browser-playwright'
export default defineConfig({
resolve: {
alias: {
'wata/host': path.resolve(import.meta.dirname, 'src/host/index.ts'),
'wata/react': path.resolve(import.meta.dirname, 'src/react/index.ts'),
'wata/server': path.resolve(import.meta.dirname, 'src/server/index.ts'),
wata: path.resolve(import.meta.dirname, 'src'),
},
dedupe: ['vp'],
},
lint: {
ignorePatterns: ['package.json'],
},
fmt: {
semi: false,
singleQuote: true,
trailingComma: 'all',
tabWidth: 2,
printWidth: 100,
ignorePatterns: ['package.json'],
experimentalSortImports: {
groups: [
['value-builtin', 'value-external', 'type-import', 'value-internal', 'type-internal'],
[
'value-parent',
'value-sibling',
'value-index',
'type-parent',
'type-sibling',
'type-index',
],
'unknown',
],
},
overrides: [
{
files: ['**/*.md', '**/*.mdx'],
options: { embeddedLanguageFormatting: 'off' },
},
],
},
test: {
reporters: process.env.CI ? ['tree'] : [],
projects: [
{
extends: true,
test: {
name: 'node',
include: [
'./src/**/*.test.ts',
'./test/**/*.test.ts',
'!./src/**/*.browser.test.ts',
'!./test/**/*.browser.test.ts',
],
},
},
{
extends: true,
test: {
name: 'browser',
include: ['./src/**/*.browser.test.ts', './test/**/*.browser.test.ts'],
browser: {
enabled: true,
headless: true,
instances: [{ browser: 'chromium' }],
provider: playwright(),
screenshotFailures: false,
},
},
},
],
},
})