-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.js
More file actions
16 lines (16 loc) · 827 Bytes
/
Copy pathvitest.config.js
File metadata and controls
16 lines (16 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Frontend (JCEF web app) unit tests. The app under test is the inlined ES2019 code in
// src/main/resources/jcef/*.js — it runs in an embedded Chromium at runtime, so we exercise it here in jsdom.
// No new runtime dependency ships in the plugin: vitest + jsdom are devDependencies only.
module.exports = {
test: {
environment: 'jsdom',
globals: true,
include: ['src/test/frontend/**/*.test.js'],
// The app JS is loaded manually into each test's fresh jsdom document (see helpers/load.js), so no setup file.
restoreMocks: true,
clearMocks: true,
// Console reporter locally; a JUnit file for the GitLab pipeline to ingest (mirrors the Kotlin test job).
reporters: process.env.CI ? ['default', 'junit'] : ['default'],
outputFile: { junit: 'build/reports/frontend/junit.xml' },
},
};