rescript-jest
rescript-stdlib-vendorer
Our great sponsors
rescript-jest | rescript-stdlib-vendorer | |
---|---|---|
2 | 2 | |
293 | 11 | |
- | - | |
5.4 | 5.5 | |
8 days ago | 5 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-stdlib-vendorer
-
The ultimate answer to Belt vs Js in ReScript
~/rescript-project-template/src/Demo.res:1 Found "Js" module usage. Use the vendored standard library instead. Read more at: https://github.com/DZakh/rescript-stdlib-vendorer
-
Testing in ReScript
One problem is that it suggests creating A.res, which is publicly available from other application parts. It’s usually fine for FE apps, but for developing BE and CLIs, I prefer to follow the hexagonal architecture by creating the implementation inside the Main.res and passing it to other modules via function arguments. Once again, an example from rescript-stdlib-vendorer:
What are some alternatives?
rescript-react-realworld-example-app - An exemplary real-world application built using ReScript and React
rescript-test - A lightweight test framework for ReScript
rescript-sublime - Official Sublime Text plugin for ReScript.
rescript-compiler - The compiler for ReScript.
rescript-apollo-client - ReScript bindings for the Apollo Client ecosystem
ESLint - Find and fix problems in your JavaScript code.
proposal-pipeline-operator - A proposal for adding a useful pipe operator to JavaScript.
rescript-stdlib - My personal standard library for ReScript
rescript-react - Official ReScript bindings for ReactJS
rescript-project-template - Clone this repo to start your own project!
rescript-schema - The fastest composable parser/serializer for ReScript (and TypeScript)