Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// index.js
const { createJestRunner } = require('create-jest-runner')
module.exports = createJestRunner(require.resolve('./run'))
const { createJestRunner } = require('create-jest-runner');
const runner = createJestRunner(require.resolve('./runESLint'));
module.exports = runner;
import { createJestRunner } from 'create-jest-runner';
import cosmiconfig from 'cosmiconfig';
const explorer = cosmiconfig('jest-runner-tsc');
const getExtraOptions = () => {
const searchedFor = explorer.searchSync();
if (!searchedFor || typeof searchedFor.config === 'undefined') {
return {};
}
return searchedFor.config;
};
module.exports = createJestRunner(require.resolve('./runTsc'), {
getExtraOptions,
});