Commit 8874675
committed
fix(profile-server): Add tsconfig path resolution to jest config
Because:
- profile-server's jest config had no moduleNameMapper, so jest's node
resolver couldn't find @fxa/shared/otel when loading lib/config.js
during test-unit. The unit tests failed with "Cannot find module
'@fxa/shared/otel' from 'lib/config.js'".
This commit:
- Adds pathsToModuleNameMapper from ts-jest so tsconfig paths (including
@fxa/shared/*) resolve during jest runs, mirroring auth-server's config.1 parent 66b57e2 commit 8874675
1 file changed
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
11 | 19 | | |
12 | 20 | | |
13 | 21 | | |
| |||
0 commit comments