@tempel/jest
v0.2.0
Published
Jest configuration factory for Tempel projects
Readme
@tempel/jest
A portable Jest configuration factory for JavaScript and TypeScript projects.
Installation
pnpm add -D @tempel/jestUsage
Create jest.config.mjs:
import defineConfig from "@tempel/jest";
export default defineConfig();The factory returns a standard Jest configuration and accepts all normal Jest options:
import defineConfig from "@tempel/jest";
export default defineConfig({
testEnvironment: "jsdom",
collectCoverage: true,
testMatch: ["src/**/*.{test,spec}.{js,ts,tsx}"],
});Defaults
- Verbose test reporting
src/**/*.spec.jsandsrc/**/*.spec.tstest/**/*.test.jsandtest/**/*.test.tstest/**/*.e2e.jsandtest/**/*.e2e.ts- Coverage path exclusions for dependencies, build output, coverage output, and test utilities
The package is ESM-only for configuration files. Jest itself supports the usual JavaScript and TypeScript project integrations through its standard configuration options.
License
MIT © Tempel / Dragos Cirjan
