Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression test to avoid accidentally importing values from "typescript" outside of loadConfig / project loading #1435

Closed
cspotcode opened this issue Aug 17, 2021 · 0 comments · Fixed by #1628
Milestone

Comments

@cspotcode
Copy link
Collaborator

In #1433, someone found we accidentally started importing values from typescript outside of our intelligent loadConfig / project loading logic. Can we add a regression test to detect this? Something like this should do the trick:

node -e "require('ts-node'); Object.keys(require.cache).< cannot contain typescript anywhere >"
@cspotcode cspotcode added this to the 10.5.0 milestone Jan 31, 2022
cspotcode added a commit that referenced this issue Feb 7, 2022
cspotcode added a commit that referenced this issue Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant