Comments (5)
Ok, I finally used AVA v1.0 with TypeScript a few times and came to a conclusion: It works quite well, but some details were annoying.
I had to copy and paste a few config options every time (require ts-node
, *.ts
extensions, disable compile enhancements) and the default file matching patterns only match *.js
test files, of course.
Conclusion: There will be AVA-TS v1.0 and I basically implemented it already.
Have a look at the v1.0
branch. You can already try it by installing it as:
npm install --save-dev ava-ts@next
It's not a fork of AVA anymore, but just a small, a little bit hacky wrapper around the AVA CLI. Give it a try if you have some time and please share your feedback! 🚀
from ava-ts.
Just a note if anyone else has an issue, version 1.0.0-rc fixed an issue I was having with throwsAsync
not existing; since I'm guessing the version of ava in the latest official release wasn't supported yet.
from ava-ts.
I see that AVA 1.0 seem to have support for running ts files directly. Does this deprecate ava-ts entirely?
from ava-ts.
Very good question indeed. Not sure yet: Might be convenient to have ava-ts as just a tiny wrapper around the ava cli, setting the right settings to match the *.ts files.
Or it might be too little added value and should be deprecated... Will give it some thought. Feel free to discuss here 👇
from ava-ts.
Memo to myself: Should support the ts-node options as CLI options.
from ava-ts.
Related Issues (9)
- Clean Stack Traces HOT 4
- Can the babel dependencies be optional? HOT 5
- Unexpected token import on require file HOT 1
- Support *.tsx HOT 3
- Unexpected token import: ES2015 module support without transpiling to CommonJS HOT 17
- ts-node peer dependency HOT 1
- Coverage with NYC HOT 10
- Should test failure line numbers be accurate? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ava-ts.