0.4.0 • Published 12 months ago

@apitree.cz/vitest-config v0.4.0

Weekly downloads
-
License
-
Repository
github
Last release
12 months ago

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. If your project, however, is ESM, you can place the configuration in vitest.config.ts as usual.

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.

0.3.2

1 year ago

0.3.1

1 year ago

0.4.0

12 months ago

0.3.0

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

2 years ago

0.1.0

2 years ago