Jest is a delightful JavaScript Testing Framework with a focus on simplicity.
(c) jestjs.io
🐊Putout plugin helps to migrate to latest Jest API.
npm i @putout/plugin-jest -D
{
"rules": {
"jest": "on"
}
}
jest.addMatchers({
fail: (a, b, c) => {
return {
pass: false,
};
},
});
jest.resetModuleRegistry();
jest.runTimersToTime(1000);
expect.extend({
fail: (a, b, c) => {
return {
pass: false,
};
},
});
jest.resetModules();
jest.advanceTimersByTime(1000);
MIT