Skip to content

How to run AVA tests with a pre-transpile step #3087

Answered by novemberborn
sebastianrath asked this question in Q&A
Discussion options

You must be logged in to vote

Is there a recommended way to run the tests through AVA when test files are already transpiled in the output directory ./build?

Yes: https://github.com/avajs/ava/blob/main/docs/recipes/typescript.md#with-precompile-step

See https://github.com/avajs/typescript.

{
	"ava": {
		"typescript": {
			"rewritePaths": {
				"src/": "build/"
			},
			"compile": false
		}
	}
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sebastianrath
Comment options

Answer selected by sebastianrath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants