From 5d143c9221e666238caca3fd27d56e8966f1f4d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 5 Apr 2017 13:20:56 +0200 Subject: [PATCH] Update variable naming in troubleshooting --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b9a130205f..30daf70637 100644 --- a/README.md +++ b/README.md @@ -75,12 +75,12 @@ Problems may arise if you're using custom builds (this preset is tailored for `a TypeScript supports absolute imports. The preset by default understands all absolute imports referring to `src` directory, so instead: ```js import MyComponent from '../../src/app/my.component'; -import MyComponent from '../../src/testing/my.stuff'; +import MyStuff from '../../src/testing/my.stuff'; ``` you can use: ```js import MyComponent from 'app/my.component'; -import MyComponent from 'testing/my.stuff'; +import MyStuff from 'testing/my.stuff'; ``` However, if your directory structure differ from that provided by `angular-cli` you can adjust `moduleNameMapper` in Jest config: ```js