rescript-jest
rescript-schema
Our great sponsors
rescript-jest | rescript-schema | |
---|---|---|
2 | 2 | |
293 | 116 | |
- | - | |
5.4 | 8.9 | |
8 days ago | 3 months ago | |
ReScript | ReScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rescript-jest
-
Testing in ReScript
Another popular option is to use bindings for Jest. However, in my opinion, Jest is a monstrous combine that is slow, has a hacky mock system, bad ESM support, and purely tries to mimic DOM API with JSDOM. AVA literally doesn't have any of these. Also, the available Jest bindings don't allow doing multiple assertions per test, which is often useful to me.
-
How I Switched from TypeScript to ReScript
In order to write tests in ReScript, and thus test your code directly, you can use bs-jest, which provides ReScript bindings to Jest. If you prefer, you can also use the slightly less mature bs-mocha. You can also test the generated JavaScript or TypeScript files with no extra configuration.
rescript-schema
-
Tired of Typescript? Check out ReScript!
I have seen something like this in real code, and it led to bugs. ReScript won't allow you to do this, you will have to parse the JSON with a library like rescript-schema (it's like Zod).
-
Testing in ReScript
Hello, I’m Dmitry Zakharov, a Frontend-engineer at Carla and author of rescript-struct. After using ReScript for two years, of which 9 months are in production, I’ve gotten some insights about testing I wanted to share. I use ReScript not only for FE but for different areas, so if you’re a BE engineer or create a CLI tool, this article will also be useful for you.
What are some alternatives?
rescript-react-realworld-example-app - An exemplary real-world application built using ReScript and React
rescript-ava - ReScript bindings for Ava
rescript-sublime - Official Sublime Text plugin for ReScript.
rescript-react - Official ReScript bindings for ReactJS
rescript-apollo-client - ReScript bindings for the Apollo Client ecosystem
rescript-test - A lightweight test framework for ReScript
proposal-pipeline-operator - A proposal for adding a useful pipe operator to JavaScript.
ESLint - Find and fix problems in your JavaScript code.
execa - Process execution for humans
fire-emblem-chess - Fire Emblem themed pass & play browser chess game, implemented in ReScript
Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.