Skip to content

Document that users likely need to exclude the TypeScript output directory from AVA's test selection #9

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 27, 2020 · 1 comment · Fixed by #11
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@novemberborn
Copy link
Member

If you're not selecting tests from a specific source directory, you should add an exclusion pattern like !build/** to AVA's files configuration.

We should document this.

@novemberborn novemberborn added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Jan 27, 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 linked a pull request Feb 2, 2020 that will close this issue
@novemberborn
Copy link
Member Author

Fixed by #11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant