@beemo/config-jest
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

Beemo - Jest config

Build Status npm version npm deps

An official Beemo Jest config based on jest-preset-beemo.

yarn install --dev jest @beemo/core @beemo/driver-jest @beemo/config-jest

Setup

Create a configs/jest.ts file in your Beemo configuration module that re-exports this config.

export { default } from '@beemo/config-jest';

Settings

The following Beemo settings can be defined to customize Jest even further.

  • projects (boolean | string[]) - Enable Jest projects. If true is passed, will be resolved using workspaces, otherwise requires an array of explicit strings. Defaults to false.
  • react (boolean | classic | automatic) - Set the testing environment to jsdom to support React. Defaults to false.
export default {
	module: '<config-module>',
	drivers: ['jest'],
	settings: {
		react: true,
	},
};

Readme

Keywords

Package Sidebar

Install

npm i @beemo/config-jest

Weekly Downloads

20,711

Version

2.0.3

License

MIT

Unpacked Size

5.89 kB

Total Files

9

Last publish

Collaborators

  • beemo-admin
  • milesj