How to use the ts-jest/utils.createJestPreset function in ts-jest

To help you get started, we’ve selected a few ts-jest 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 kulshekhar / ts-jest / e2e / __cases__ / module-kinds / ts-jest-tools.spec.ts View on Github external
test('utils', () => {
  expect(Object.keys(utils)).toEqual(['mocked', 'createJestPreset', 'pathsToModuleNameMapper'])
  expect(typeof utils.mocked).toBe('function')
  expect(typeof utils.createJestPreset).toBe('function')
  expect(typeof utils.pathsToModuleNameMapper).toBe('function')
})