0.8.1 • Published 5 years ago
@straw-hat/jest-config v0.8.1
@straw-hat/jest-config
Straw Hat Team’s Jest generic configs.
Installation
yarn add @straw-hat/jest-config -D
Usage
Extend your jest.config.js
config from our config.
// ./jest.config.js
module.exports = {
preset: "@straw-hat/jest-config",
};
Or if you are using React.
// ./jest.config.js
module.exports = {
preset: "./node_modules/@straw-hat/jest-config/react-preset",
};
Creating Jest Configs
Or create your own jest
config by using the factory function.
// ./jest.config.js
const { createJestConfig } = require("@straw-hat/jest-config");
const config = createJestConfig({
// Check the documentation of `createJestConfig` for more information
// about the configuration.
});
module.exports = config;
Polyfills
Add your polyfills on your src/__test__/setupFramework
or
src/__test__/setupFiles
as such:
// ./src/__test__/setupFramework.ts
import "raf/polyfill";
0.8.1
5 years ago
0.8.0
5 years ago
0.7.1
5 years ago
0.7.0
5 years ago
0.6.0
5 years ago
0.5.5
5 years ago
0.5.4
6 years ago
0.5.3
6 years ago
0.5.2
6 years ago
0.5.1
6 years ago
0.5.0
6 years ago
0.4.0
6 years ago
0.3.3
6 years ago
0.3.2
6 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.6
6 years ago
0.2.5
6 years ago
0.2.4
6 years ago
0.2.3
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago