How to use the jest-config.readConfig function in jest-config

To help you get started, we’ve selected a few jest-config examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Raathigesh / majestic / app / src / core / engine / config / defaultConfigCli.ts View on Github external
export default function getConfig(rootPath: string): Config {
  return {
    jest: {
      ...readConfig({}, rootPath).projectConfig
    },
    jestScript: resolveJestCliPath(rootPath, 'jest-cli', 'bin/jest.js')
  };
}
github Raathigesh / majestic / app / src / core / engine / config / defaultConfig.ts View on Github external
export default function getConfig(rootPath: string): Config {
  return {
    jest: {
      ...readConfig({}, rootPath).projectConfig
    },
    jestScript: resolveJestCliPath(rootPath, 'jest', 'bin/jest.js')
  };
}