rescript-jest
rescript-sublime
Our great sponsors
rescript-jest | rescript-sublime | |
---|---|---|
2 | 1 | |
293 | 7 | |
- | - | |
5.6 | 0.0 | |
6 months ago | almost 3 years 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-sublime
-
How I Switched from TypeScript to ReScript
ReScript devs did well on prioritizing the plugin for VSCode, which works really well. With the ReScript’s watcher running, you’ll see your Type errors underlined in red, with a descriptive bubble on hover. You also get type hints, formatting, and jumps to definitions. There’s also official support for Vim (both plain Vim and Coc Language Server) and Sublime.
What are some alternatives?
rescript-react-realworld-example-app - An exemplary real-world application built using ReScript and React
FiraCode - Free monospaced font with programming ligatures
rescript-apollo-client - ReScript bindings for the Apollo Client ecosystem
genType - Auto generation of idiomatic bindings between Reason and JavaScript: either vanilla or typed with TypeScript/FlowType.
proposal-pipeline-operator - A proposal for adding a useful pipe operator to JavaScript.
rescript-react - Official ReScript bindings for ReactJS
rescript-schema - The fastest composable parser/serializer for ReScript (and TypeScript)
fire-emblem-chess - Fire Emblem themed pass & play browser chess game, implemented in ReScript
execa - Process execution for humans
rescript-stdlib-vendorer - Tool to support usage of a vendored standard library in ReScript
rescript-ava - ReScript bindings for Ava