-
Notifications
You must be signed in to change notification settings - Fork 508
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
Co-located test files have type declarations generated in dist folder #464
Comments
See ezolenko/rollup-plugin-typescript2#132 (comment) . Is your test file in I have tests in |
Seems to be the issue indeed. My test files are co-located in the I guess I can |
Just to confirm, did setting I'm open to adding those as defaults as such project configurations are not uncommon, but don't feel strongly about it one way or the other. At the same time, TSDX doesn't have any built-in default includes either (just those in the templated tsconfigs). Can see what the other maintainers think in a PR ¯\_(ツ)_/¯ |
Yep! For sure, I'll make sure to remember all of those. I guess I can make the PR, and do the rest of the discussion there |
Current Behavior
If you run
npx tsdx create test-project # choose react
, create a test file (say
index.test.tsx
) with some content, and runyarn build
, you'll end up with a file calleddist/index.test.d.ts
.Expected behavior
TSDX shouldn't create this.
Suggested solution(s)
Perhaps there's a filter you could apply? Idk 🤷♂ Haven't had time to research it yet.
Your environment
The text was updated successfully, but these errors were encountered: