Code Monkey home page Code Monkey logo

Comments (6)

novemberborn avatar novemberborn commented on May 18, 2024 4

I think we've become quite comfortable with AVA's built-in assertions since this issue was raised. We won't be adding tight integration for other assertion libraries any time soon, so I'm closing this issue.

from ava.

sindresorhus avatar sindresorhus commented on May 18, 2024 1

People can already use their favorite assertion module with AVA. It just won't work with planned assertions. That being said, I almost never use planned assertions anymore, now that we have async/await.

from ava.

sindresorhus avatar sindresorhus commented on May 18, 2024

Yes you can. Updated the readme about it: 3deba51

It won't work with planned assertions though. For that, we'll need an AVA method that hooks the assertion methods in the assertion module you supply so that it can do the assert counting. Shouldn't be that hard, but not top priority.

from ava.

ColCh avatar ColCh commented on May 18, 2024

Thanks. Any tutorial on how to do that? Code sample will be cool.

from ava.

sindresorhus avatar sindresorhus commented on May 18, 2024

How to do what? With assert counting is not possible yet as outlined above. Without assert counting is documented in the readme as already mentioned.

from ava.

sindresorhus avatar sindresorhus commented on May 18, 2024

Please read the discussion in #49 before commenting.

We should support any assertion library, but have built-in "adapters" for the most popular ones. By "builtin adapter", I mean users can just pass the instance (e.g. chai) and have it just work.

from ava.

Related Issues (20)

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.