Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Ability to run a mixed test code base using node:test #3271

Closed
Raynos opened this issue Dec 5, 2023 · 2 comments
Closed

Ability to run a mixed test code base using node:test #3271

Raynos opened this issue Dec 5, 2023 · 2 comments
Labels

Comments

@Raynos
Copy link

Raynos commented Dec 5, 2023

I want to migrate my tests and write new tests using node:test and continue using ava to run the entire test file.

Is it possible for ava cli to detect that a given file runs node:test and hook into that, or hook into the TAP output ?

@Raynos Raynos added the question label Dec 5, 2023
@Raynos
Copy link
Author

Raynos commented Dec 5, 2023

I briefly looked at a jscodeshift to go from ava to node:test but that's non-trivial, i was looking at the tape to ava codemod if i could inverse it.

@novemberborn
Copy link
Member

The oldest AVA tests actually use the tap runner. We run separate sets of tests.

It would be possible within AVAs config to filter test files yourself, so you wouldn't provide globs but resolve the list of files fit for AVA.

@avajs avajs locked and limited conversation to collaborators Dec 6, 2023
@novemberborn novemberborn converted this issue into discussion #3272 Dec 6, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants