-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Expand file tree
/
Copy pathvitest.config.ts
More file actions
52 lines (50 loc) · 1.23 KB
/
vitest.config.ts
File metadata and controls
52 lines (50 loc) · 1.23 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
import path from "node:path";
import { defineConfig } from "vitest/config";
import { repoRoot } from "../../packages/test/vitest/repo-root";
import { getElizaWorkspaceRoot } from "../../packages/test/vitest/workspace-aliases";
const pluginSqlRoot = path.join(
getElizaWorkspaceRoot(repoRoot),
"plugins",
"plugin-sql",
"typescript",
);
export default defineConfig({
resolve: {
alias: [
{
find: /^@elizaos\/plugin-sql$/,
replacement: path.join(pluginSqlRoot, "index.node.ts"),
},
{
find: /^@elizaos\/plugin-sql\/schema$/,
replacement: path.join(pluginSqlRoot, "schema", "index.ts"),
},
{
find: /^@elizaos\/plugin-sql\/types$/,
replacement: path.join(pluginSqlRoot, "types.ts"),
},
{
find: /^@elizaos\/plugin-sql\/(.+)$/,
replacement: path.join(pluginSqlRoot, "$1"),
},
],
},
test: {
hookTimeout: 60_000,
testTimeout: 60_000,
fileParallelism: false,
exclude: [
"**/node_modules/**",
"**/dist/**",
"**/.claude/**",
".claude/**",
"**/*.e2e.test.*",
"**/*.live.test.*",
"**/*.live.e2e.test.*",
"**/*.real.test.*",
"**/*.real.e2e.test.*",
// Playwright e2e specs must be run with `npm run test:e2e` (playwright test), not vitest
"e2e/**",
],
},
});