-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
Based on the TypeScript instructions getting AVA working with TypeScript at runtime should be just installing ts-node
and typescript
and then adding configuration:
"extensions": [
"ts",
"tsx"
],
"require": [
"ts-node/register"
]
But this results in errors for the import
syntax:
Uncaught exception in test/ava/test.ts
/Users/Storm/dev/ianstormtaylor/nucleus/test/ava/test.ts:1
import test from 'ava';
^^^^^^
SyntaxError: Cannot use import statement outside a module
Might there need to be more done as part of the configuration that isn't documented?
Nantris, mikob and lorisleiva