- Introduced `run-vitest-unit-batches.mjs` script for running unit tests in batches with configurable batch size. - Updated `package.json` to replace `test:unit` command with the batch runner and added `test:unit:single` for direct execution. - Tweaked GitHub workflows (`tests.yml`, `code_quality.yml`) to use updated actions and support batch testing. - Minor formatting improvements in Vue components and workflows for consistent style.
22 lines
508 B
JavaScript
22 lines
508 B
JavaScript
import { fileURLToPath, URL } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import VueJsx from "@vitejs/plugin-vue-jsx";
|
|
|
|
export default defineConfig({
|
|
plugins: [vue(), VueJsx()],
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "node",
|
|
include: ["tests/unit/**/*.spec.js"],
|
|
setupFiles: ["tests/unit/setup.js"],
|
|
coverage: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
});
|