@apitree.cz/vitest-config v0.7.6
Vitest Config
Vitest configuration for ApiTree projects
Installation
pnpm add --save-dev @apitree.cz/vitest-config vitestMonorepos
Prior to the installation, add the following to your repository root .npmrc:
public-hoist-pattern[]=*vitest*Install and use the package in each workspace.
Usage
Use one of the following configurations in your vitest.config.ts:
Base
export { base as default } from '@apitree.cz/vitest-config';React
export { react as default } from '@apitree.cz/vitest-config';⚠️ You will also need to install
jsdomfor React configuration to work.
Nest.js
export { nestjs as default } from '@apitree.cz/vitest-config';Customization
You can customize the configuration with mergeConfig function:
import { base } from '@apitree.cz/vitest-config';
import { defineConfig, mergeConfig } from 'vitest/config';
export default mergeConfig(
base,
defineConfig({
// project specific config
}),
);See Options documentation for config reference.
9 months ago
9 months ago
7 months ago
9 months ago
9 months ago
10 months ago
10 months ago
10 months ago
9 months ago
5 months ago
5 months ago
9 months ago
9 months ago
9 months ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago