Commit 9ae7ef1
committed
fix(auth-server): Restore fxa-shared/* jest moduleNameMapper
Because:
- When jest.config.js switched to pathsToModuleNameMapper, the explicit
'^fxa-shared/(.*)$' → '<rootDir>/../fxa-shared/$1' mapping was dropped.
Without it, 'require("fxa-shared/...")' resolves through fxa-shared's
"exports" field in node_modules, which points at un-built dist/ paths,
breaking integration tests like oauth_api.in.spec.ts's POST
/authorized-clients (response schema validation path was never reached
— the underlying fxa-shared sub-path import failed at module load).
This commit:
- Adds back the fxa-shared subpath mapping alongside the tsconfig path
mappings so both schemes coexist during jest runs.1 parent 0d9a2f1 commit 9ae7ef1
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments