Files
ef8b80bc11 Merge docs into main for 10.7.0
* chore(website): upgrade Docusaurus, format files

* remove external link icon

* upgrade Docusaurus to beta.16

* fix lock

* add shiki-twoslash, pick code highlighting themes, update
build-readme.mjs to strip twoslash prefixes, fix a couple typos
and docs mistakes found due to the above (yay), pin yarn version

* linting

* beta.17

* point breadcrumb home to /docs

* fix prettier config

* remove twoslash tsconfig renderer due to rendering bug on dark theme, and it also adds erroneous links to ts-node sub-config

Co-authored-by: Andrew Bradley <[email protected]>

Co-authored-by: Joshua Chen <[email protected]>
2022-03-05 22:10:38 -05:00

697 B

title
title
AVA

Assuming you are configuring AVA via your package.json, add one of the following configurations.

CommonJS

Use this configuration if your package.json does not have "type": "module".

{
  "ava": {
    "extensions": [
      "ts"
    ],
    "require": [
      "ts-node/register"
    ]
  }
}

Native ECMAScript modules

This configuration is necessary if your package.json has "type": "module".

{
  "ava": {
    "extensions": {
      "ts": "module"
    },
    "nonSemVerExperiments": {
      "configurableModuleFormat": true
    },
    "nodeArguments": [
      "--loader=ts-node/esm"
    ]
  }
}