Giter Club home page Giter Club logo

Comments (5)

leilapearson avatar leilapearson commented on June 16, 2024 1

Working on this as part of a new major release of the package, which includes improving error messages for all matchers, and properly treating the type of received values as unknown.

from jest-fp-ts.

leilapearson avatar leilapearson commented on June 16, 2024 1

Released version 2.0.0 today with These matchers and other changes.

from jest-fp-ts.

leilapearson avatar leilapearson commented on June 16, 2024

@waynevanson I was waiting for someone to make this request! 🥇

I started on these matchers some time ago but since I wasn't using them decided to move onto other things until they were requested. I was actually just thinking to go in and pick up that work again since I noticed the library is getting more and more traction over time. It certainly makes sense to add them to the library.

Though the matchers themselves are simple, the code needs restructuring since all *Left and *Right matchers will be common to both either and these.

Also note that since jest is calling the matchers from its own Javascript code, there's no Typescript type checking when the matchers are called, so no way enforce that certain matchers are only called on certain types.

Anyway, as mentioned I'm partway through the work already - though it has been sitting a while. If I pick this up again and get it done sometime this month would that work for you?

from jest-fp-ts.

waynevanson avatar waynevanson commented on June 16, 2024

Also note that since jest is calling the matchers from its own Javascript code, there's no Typescript type checking when the matchers are called, so no way enforce that certain matchers are only called on certain types.

Good catch.

If I pick this up again and get it done sometime this month would that work for you?

There's no rush, it's open source!

I'm actually building quickcheck over here, which can be used with and without the matchers. I'll be sure to use this lib in examples!

from jest-fp-ts.

leilapearson avatar leilapearson commented on June 16, 2024

Nice!

from jest-fp-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.