1.0.1 • Published 1 year ago

@tokilabs/jest-presets v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Shared Jest presets

This is Toki Labs shared for Jest preset and it changes some of the default behavior.

Integrate into new project

1. Install this package as devDependency

# with Yarn
$ yarn add -D @tokilabs/jest-presets

# with npm
$ npm i -D @tokilabs/jest-presets

# with pnpm
$ pnpm add -D @tokilabs/jest-presets

2. Install peer dependencies

The configuration requires some packages (including jest) to work. You should install them in your project as devDependencies.

To do that, you can make use of the tool install-peerdeps:

# with Yarn
$ yarn dlx install-peerdeps --dev @tokilabs/jest-presets

# with npm
$ npx install-peerdeps --dev @tokilabs/jest-presets

#with pnpm
$ pnpm dlx install-peerdeps --dev @tokilabs/jest-presets

3. Configure your project

Create a jest.config.js file in project root with the following content:

module.exports = {
 preset: "@tokilabs/jest-presets/node"
}
1.0.1

1 year ago

1.0.0

1 year ago