-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvite.config.js
More file actions
43 lines (41 loc) · 1.14 KB
/
vite.config.js
File metadata and controls
43 lines (41 loc) · 1.14 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
/// <reference types="vitest" />
import { defineConfig } from 'vite';
import inspect from 'vite-plugin-inspect';
import azothPlugin from './packages/vite-plugin/index.js'
import { fileURLToPath } from 'node:url';
import path from 'node:path';
import { webdriverio } from '@vitest/browser-webdriverio';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
test: {
browser: {
enabled: true,
headless: true,
instances: [{ browser: 'chrome' }],
provider: webdriverio(),
},
// Node-specific tests that can't run in browser
exclude: [
'**/node_modules/**',
'**/dist/**',
'packages/jsonic/json-stream.test.js',
'packages/vite-plugin/index.test.js',
'vite-test/plugin.test.js',
],
},
resolve: {
alias: {
'test-utils': path.resolve(__dirname, 'test-utils'),
},
},
plugins: [
azothPlugin(),
inspect()
],
build: {
target: 'esnext',
},
esbuild: {
exclude: ['**/*.jsx', '**/*.tsx'],
}
});