-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
vite.config.js
28 lines (26 loc) · 940 Bytes
/
vite.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
/*!
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// eslint-disable-next-line import/no-unresolved
import { defineConfig } from 'vitest/config';
// eslint-disable-next-line import/no-extraneous-dependencies
import GithubActionsReporter from 'vitest-github-actions-reporter';
export default defineConfig({
test: {
setupFiles: ['./assets/js/setup.test.js'],
include: ['assets/js/**/*.test.js', '!assets/js/setup.test.js'],
coverage: {
all: true,
include: ['assets/js/**/*.js'],
reporter: ['text', 'json', 'html', 'lcovonly'],
exclude: ['assets/js/**/*.test.js'],
},
reporters: process.env.GITHUB_ACTIONS ? ['default', new GithubActionsReporter()] : 'default',
environment: 'jsdom',
},
});