mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:21:16 +08:00
17 lines
479 B
TypeScript
17 lines
479 B
TypeScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
import { defineConfig, mergeConfig } from 'vitest/config';
|
|
import { sep, posix } from 'path';
|
|
import { createVuePlugin } from 'vite-plugin-vue2';
|
|
import { vitestCommonConfig } from '../../vitest.workspace';
|
|
|
|
export default mergeConfig(
|
|
vitestCommonConfig,
|
|
defineConfig({
|
|
test: {
|
|
environment: 'jsdom',
|
|
name: __dirname.split(sep).slice(-2).join(posix.sep),
|
|
},
|
|
plugins: [createVuePlugin()],
|
|
})
|
|
);
|