Giter VIP home page Giter VIP logo

Comments (5)

andywer avatar andywer commented on May 27, 2024 3

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.

ckbrewer33 avatar ckbrewer33 commented on May 27, 2024 1

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.

motin avatar motin commented on May 27, 2024

I see that AVA 1.0 seem to have support for running ts files directly. Does this deprecate ava-ts entirely?

from ava-ts.

andywer avatar andywer commented on May 27, 2024

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.

andywer avatar andywer commented on May 27, 2024

Memo to myself: Should support the ts-node options as CLI options.

from ava-ts.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.