ava v3.2.0 Release Notes

Release Date: 2020-02-02 // over 4 years ago
  • ๐Ÿš€ This release improves the integration with the new @ava/typescript package, which allows AVA to load pre-compiled TypeScript files.

    ๐Ÿ“ฆ First, install the new @ava/typescript package:

    npm install --save-dev @ava/typescript@^1.1
    

    ๐Ÿ— Now let's assume your TypeScript files are in a src directory, output to a build 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

    ๐Ÿ‘€ See v3.1.0...v3.2.0 for all changes.