@asd14/jest-config
v1.1.3
Published
ASD14's reusable Jest config
Readme
@asd14/jest-config
Reusable Jest configuration.
Installation
npm install --save-dev @asd14/jest-configUsage
In your jest.config.js file, add the following:
import baseConfig from "@asd14/jest-config"
/** @satisfies {import("@jest/types").Config.InitialOptions} */
export default /** @type {const} */ ({
...baseConfig,
testEnvironment: "jsdom"
})What baseConfig does:
- Resolve
@d41/*and@asd14/*monorepo packages; - Allow importing
*.jsextension files which are problematic since Jest parsessrcfiles and those*.jsfiles might not yet be transpiled. - Enforce 95% coverage threshold :godmode:
