-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathvitest.config.ts
More file actions
70 lines (68 loc) · 1.87 KB
/
vitest.config.ts
File metadata and controls
70 lines (68 loc) · 1.87 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
/**
* @license
* Copyright 2025 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import path from 'path';
import {defineConfig} from 'vitest/config';
export default defineConfig({
test: {
projects: [
{
test: {
name: 'unit:core',
environment: 'node',
alias: {'@google/adk': path.resolve(__dirname, './core/src')},
include: ['core/test/**/*_test.ts'],
},
},
{
test: {
name: 'unit:dev',
environment: 'node',
alias: {'@google/adk': path.resolve(__dirname, './core/src')},
include: ['dev/test/**/*_test.ts'],
},
},
{
test: {
name: 'integration',
environment: 'node',
alias: {'@google/adk': path.resolve(__dirname, './core/src')},
include: ['tests/integration/**/*_test.ts'],
},
},
{
test: {
name: 'e2e',
environment: 'node',
alias: {'@google/adk': path.resolve(__dirname, './core/src')},
include: ['tests/e2e/**/*_test.ts'],
},
},
{
test: {
name: 'cross-language',
environment: 'node',
alias: {'@google/adk': path.resolve(__dirname, './core/src')},
include: ['tests/cross_language/**/*_test.ts'],
},
},
],
coverage: {
provider: 'v8',
reporter: ['text', 'json'],
include: ['core/src/**/*.ts', 'dev/src/**/*.ts'],
// Those values are from the npm run test:coverage command run on 2026-02-06
// and are used to ensure that the test coverage does not decrease.
// Once the test coverage increases, these values should be updated (manually).
thresholds: {
statements: 53,
branches: 76,
functions: 59,
lines: 53,
},
},
globalSetup: ['./tests/global_setup.ts'],
},
});