Closed HamedFathi closed 6 years ago
Your src
directory contains .ts
files. By default AVA will be loading .js
files instead. You could add ts-node/register
to AVA's require
configuration and it should work.
@novemberborn
I am not familiar with ts-node/register
Do you have a sample for this problem?
See https://www.npmjs.com/package/ts-node.
Configure the require
option as shown in https://github.com/avajs/ava#configuration — but use ts-node/register
instead of babel-register
.
We want to use avajs in our project but seems it can not import some pathes correctly
I imported a class with correct path. you can see the below picture. VS Code recognize it correctly.
but avajs can not
Can anyone guide me why ?