From ec78757be641185857b007c1fdfd9190e2253cf7 Mon Sep 17 00:00:00 2001 From: Huafu Gandon Date: Wed, 3 Oct 2018 09:48:30 +0200 Subject: [PATCH] docs(utils): updates docs related to moved helpers --- docs/user/config/index.md | 2 +- docs/user/test-helpers.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user/config/index.md b/docs/user/config/index.md index b385353a25..2e66eba6e9 100644 --- a/docs/user/config/index.md +++ b/docs/user/config/index.md @@ -133,7 +133,7 @@ module.exports = { ```js // jest.config.js -const { pathsToModuleNameMapper } = require('ts-jest'); +const { pathsToModuleNameMapper } = require('ts-jest/utils'); // In the following statement, replace `./tsconfig` with the path to your `tsconfig` file // which contains the path mapping (ie the `compilerOptions.paths` option): const { compilerOptions } = require('./tsconfig'); diff --git a/docs/user/test-helpers.md b/docs/user/test-helpers.md index bbb533a261..729b9e1847 100644 --- a/docs/user/test-helpers.md +++ b/docs/user/test-helpers.md @@ -27,7 +27,7 @@ export const foo = { ```ts // foo.spec.ts -import { mocked } from 'ts-jest' +import { mocked } from 'ts-jest/utils' import { foo } from './foo' jest.mock('./foo')