2.0.1 • Published 4 years ago
@mkvlrn/jest-config v2.0.1
@mkvlrn/jest-config
what
Default, barebones config for jest in a TypeScript or JavaScript project. Needs ts-jest
for typescript.
why
Convenience!
install
# npm
npm add jest ts-jest @mkvlrn/jest-config -D
# yarn
yarn add jest ts-jest @mkvlrn/jest-config -D
usage
Importing from your package.json
file:
...
"jest": {
"preset":"@mkvlrn/jest-config"
}
...
Importing from jest.config.json
:
{
"preset": "@mkvlrn/jest-config"
}
Importing/extending from jest.config.js
:
module.exports = {
preset: '@mkvlrn/jest-config',
}