ava v3.1.0 Release Notes
Release Date: 2020-01-26 // about 4 years ago-
AVA can now load pre-compiled TypeScript files!
๐ฆ First, install the new
@ava/typescript
package:npm install --save-dev @ava/typescript
๐ Now let's assume your TypeScript files are in a
src
directory, output to abuild
directory. Configure AVA like so:ava.config.js
file:export default { typescript: { rewritePaths: { 'src/': 'build/' } } }
โ Compile your TypeScript files and run your tests! Or, to run a specific test file, run
npx ava src/test.ts
.๐ For more examples see the
@ava/typescript
package.๐ As exciting as this is, it's still early days. We need your help improving our TypeScript support. Check out the open issues.
Other changes
Thanks to @jhechtf for fixing our TypeScript recipe after the changes in AVA 3.0 91a0086
๐ See v3.0.0...v3.1.0 for all changes.