Jest config for Beemo projects.
npm install @beemo/config-jest


An official Beemo Jest config based on
jest-preset-beemo.
``bash`
yarn install --dev jest @beemo/core @beemo/driver-jest @beemo/config-jest
Create a configs/jest.ts file in your Beemo configuration module that re-exports this config.
`ts`
export { default } from '@beemo/config-jest';
The following Beemo settings can be defined to customize Jest even further.
- projects (boolean | string[]) - Enable Jest projects. If true is passed, will be resolvedfalse
using workspaces, otherwise requires an array of explicit strings. Defaults to .react
- (boolean | classic | automatic) - Set the testing environment to jsdom to supportfalse
React. Defaults to .
`ts``
export default {
module: '
drivers: ['jest'],
settings: {
react: true,
},
};