storybook/code/frameworks/angular/vitest.config.ts
2023-12-12 15:48:02 +01:00

16 lines
457 B
TypeScript

/* eslint-disable import/no-extraneous-dependencies */
import { defineConfig, mergeConfig } from 'vitest/config';
import { sep, posix } from 'path';
import { vitestCommonConfig } from '../../vitest.workspace';
export default defineConfig(({ mode }) => {
return mergeConfig(vitestCommonConfig, {
test: {
setupFiles: ['src/test-setup.ts'],
environment: 'jsdom',
name: __dirname.split(sep).slice(-2).join(posix.sep),
},
});
});