It
global testsyarn add jest-runner-tsd
jest.config.js
Have the runner property set to jest-runner-tsd
module.exports = {
runner: 'jest-runner-tsd'
};
index.d.tsd
if the type def file is somewhere else, specify it’s path in each test file at the top like this
/**
* @type ../../custom/path/to/types.d.ts
**/
typings-custom-path
fixture that has a failing test case
tests-custom-name
fixture that has a failing test case
If possible, also work on adding checks that makes sure that the files mentioned in the options exist or not and then throw an error if it doesn’t.