Comments (5)
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.
Released version 2.0.0 today with These matchers and other changes.
from jest-fp-ts.
@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.
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.
Nice!
from jest-fp-ts.
Related Issues (9)
- Publish files to NPM HOT 5
- Vitest Does Not Work Without Globals HOT 1
- Error when only using `fp-ts`, not `io-ts` HOT 3
- Monoid and Semigroup for project settings HOT 3
- Installation instructions do not work (simple repository included) HOT 5
- Jest 28 Support HOT 2
- Expect Either.Left error matching string/regex HOT 6
- TS2305: Module '"@jest/expect-utils"' has no exported member 'TesterContext'. HOT 2
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 jest-fp-ts.