@apitree.cz/vitest-config v0.3.0
Vitest Config
Vitest configuration for ApiTree projects
Installation
pnpm add --save-dev @apitree.cz/vitest-config @vitest/coverage-v8 vitest
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';
Nest.js
⚠️ Nest.js projects are CJS by default. This configuration needs to be placed in vitest.config.mjs
to interpret it as
ESM.
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.
28 days ago
29 days ago
4 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago