Skip to content

AVA select .d.ts files as test files #10

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

Closed
novemberborn opened this issue Jan 28, 2020 · 0 comments · Fixed by #11
Closed

AVA select .d.ts files as test files #10

novemberborn opened this issue Jan 28, 2020 · 0 comments · Fixed by #11
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@novemberborn
Copy link
Member

AVA will select all .ts files as test files. It should automatically ignore .d.ts files. We'll have to make changes in AVA so this package can communicate exclusion patterns, not just file extensions.

For now, the workaround is to add !**/*.d.ts to the files patterns configuration.

@novemberborn novemberborn added bug Something isn't working help wanted Extra attention is needed labels Jan 28, 2020
@novemberborn novemberborn pinned this issue Jan 28, 2020
novemberborn added a commit that referenced this issue Feb 2, 2020
Have the watcher ignore changes to the original TypeScript source files.
This way, the watcher will only react to changes to the TypeScript build
output.

Allow the watcher to resolve the rewritten path of a test file, so it
can track it as a dependency of the original TypeScript source file.
This way, when the build output changes, the watcher knows to re-run the
original test file.

Update file patterns to ignore *.d.ts files, as well as any files in the
build output.

Updated the ignored-by-watcher patterns to ignore source map files from
the build output.

Fixes #10, #7, #9.
novemberborn added a commit that referenced this issue Feb 2, 2020
Have the watcher ignore changes to the original TypeScript source files.
This way, the watcher will only react to changes to the TypeScript build
output.

Allow the watcher to resolve the rewritten path of a test file, so it
can track it as a dependency of the original TypeScript source file.
This way, when the build output changes, the watcher knows to re-run the
original test file.

Update file patterns to ignore *.d.ts files, as well as any files in the
build output.

Updated the ignored-by-watcher patterns to ignore source map files from
the build output.

Fixes #10, #7, #9.
@novemberborn novemberborn unpinned this issue Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant