Skip to content

Commit

Permalink
Update variable naming in troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
thymikee authored Apr 5, 2017
1 parent 834cf3a commit 5d143c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d143c9

Please sign in to comment.