@beemo/config-jest
v2.0.3
Published
Jest config for Beemo projects.
Downloads
108,895
Readme
Beemo - Jest config
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. Iftrue
is passed, will be resolved using workspaces, otherwise requires an array of explicit strings. Defaults tofalse
.react
(boolean | classic | automatic
) - Set the testing environment tojsdom
to support React. Defaults tofalse
.
export default {
module: '<config-module>',
drivers: ['jest'],
settings: {
react: true,
},
};