-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathvitest.config.js
39 lines (37 loc) · 1.04 KB
/
vitest.config.js
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
import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
test: {
include: ['unit/**/*.js'],
reporters: ['default', 'json'],
outputFile: './test-output.json',
globals: true,
setupFiles: './setupTests.js',
watch: false,
testTimeout: 5000,
bail: 100,
retry: 1,
alias: [{
find: '@progress/kendo-ui/src',
replacement: path.resolve(__dirname, '../src')
}],
browser: {
screenshotFailures: false,
provider: 'playwright',
enabled: true,
instances: [
{
browser: "chromium"
}
],
headless: true,
viewport: {
width: 1920,
height: 1080
}
},
launchOptions: process.platform === 'linux' && process.env.CI ? {
executablePath: process.env.CHROME_BIN || '/usr/bin/google-chrome',
} : {},
}
});