-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): support multiple paths for
pathsToModuleNameMapper
(#…
- Loading branch information
1 parent
6f059b4
commit a727bd5
Showing
11 changed files
with
69 additions
and
19 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
e2e/__external-repos__/simple-project-references/jest.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
e2e/__external-repos__/simple-project-references/src/__tests__/divide.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { divide } from '~' | ||
import { divide as _divide } from '~/divide' | ||
|
||
test('imports same divide function', () => { | ||
expect(_divide).toBe(divide) | ||
}) | ||
|
||
test('divides 3 / 2 to equal 1.5', () => { | ||
expect(divide(3, 2)).toBe(1.5) | ||
}) |
5 changes: 5 additions & 0 deletions
5
e2e/__external-repos__/simple-project-references/src/__tests__/multiply.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { multiply } from '@/multiply' | ||
|
||
test('multiplies 2 * 2 to equal 4', () => { | ||
expect(multiply(2, 2)).toBe(4) | ||
}) |
5 changes: 5 additions & 0 deletions
5
e2e/__external-repos__/simple-project-references/src/__tests__/subtract.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { subtract } from '@/subtract' | ||
|
||
test('subtracts 3 - 1 to equal 2', () => { | ||
expect(subtract(3, 1)).toBe(2) | ||
}) |
3 changes: 3 additions & 0 deletions
3
e2e/__external-repos__/simple-project-references/src/math/divide.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import divide from 'lodash/divide' | ||
|
||
export { divide } |
3 changes: 3 additions & 0 deletions
3
e2e/__external-repos__/simple-project-references/src/nested/src/multiply.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import multiply from 'lodash/multiply' | ||
|
||
export { multiply } |
3 changes: 3 additions & 0 deletions
3
e2e/__external-repos__/simple-project-references/src/nested/subtract.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import subtract from 'lodash/subtract' | ||
|
||
export { subtract } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters