0.7.6 • Published 5 months ago

@apitree.cz/vitest-config v0.7.6

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

Vitest Config

NPM Version

Vitest configuration for ApiTree projects

Installation

pnpm add --save-dev @apitree.cz/vitest-config vitest

Monorepos

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 jsdom for 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.

0.7.2

9 months ago

0.7.1

9 months ago

0.7.4

7 months ago

0.7.3

9 months ago

0.7.0

9 months ago

0.4.1

10 months ago

0.4.2

10 months ago

0.5.0

9 months ago

0.7.6

5 months ago

0.7.5

5 months ago

0.6.2

9 months ago

0.6.1

9 months ago

0.6.0

9 months ago

0.3.2

1 year ago

0.3.1

1 year ago

0.4.0

1 year ago

0.3.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago