mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
ci: Setup code-coverage reporting for frontend packages (no-changelog) (#5679)
This commit is contained in:
committed by
GitHub
parent
a96861b87f
commit
eb3ba83e63
@@ -3,6 +3,8 @@ import { resolve } from 'path';
|
||||
import { defineConfig, mergeConfig } from 'vite';
|
||||
import { defineConfig as defineVitestConfig } from 'vitest/config';
|
||||
|
||||
const { coverageReporters } = require('../../jest.config.js');
|
||||
|
||||
export default mergeConfig(
|
||||
defineConfig({
|
||||
plugins: [vue()],
|
||||
@@ -38,6 +40,12 @@ export default mergeConfig(
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
setupFiles: ['./src/__tests__/setup.ts'],
|
||||
coverage: {
|
||||
provider: 'c8',
|
||||
reporter: coverageReporters,
|
||||
include: ['src/**/*.ts'],
|
||||
all: true,
|
||||
},
|
||||
css: {
|
||||
modules: {
|
||||
classNameStrategy: 'non-scoped',
|
||||
|
||||
Reference in New Issue
Block a user