Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

Add moduleDirectories for TS Jest Config - #32574

Merged
kodiakhq[bot] merged 2 commits into
vercel:canaryfrom
D-Pagey:patch-1
Dec 17, 2021
Merged

kodiakhq[bot] merged 2 commits into
vercel:canaryfrom
D-Pagey:patch-1

Conversation

@D-Pagey

@D-Pagey D-Pagey commented Dec 16, 2021 •

Copy link
Copy Markdown
Contributor

It took me a while to work out that if using TypeScript with the baseUrl set to . (quite common) - then the tests fail as Jest can't find the modules.

Explicitly setting the moduleDirectories, as per the change to the config, fixes this issue.

Documentation / Examples

  • Fixup commit
  • Make sure the linting passes by running yarn lint

without moduleDirectories set, then TS tests that use alias' won't work
@kodiakhq
kodiakhq Bot merged commit 2be207a into vercel:canary Dec 17, 2021
@D-Pagey
D-Pagey deleted the patch-1 branch December 17, 2021 22:13
@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants