rescript-jest
rescript-jest copied to clipboard
ReScript bindings for Jest
Currently the whole `LLExpect` are hidden from interface file, so does the `affirm` function. In some use cases, I need to run jest expect validation inside a scope (such as...
Hello, thanks for the bindings! I've looked into the code and as far as I can see, the `Expect` module creates jest assertions via `assertion` variant. This makes the API...
Hello, first of all, thx for your amazing work 👌🏾 I got some problem when testing async code as follow: ```rescript open GlennslRescriptJest.Jest describe("Executing some code which return errors", _...
Here's my second pass at the documentation for Create React App. A better version of #49 hopefully 😅
I am not sure exactly how this would be implemented or whether there is already something in the api that can express this, but I love scalatest's inside matcher. If...
Good to write bindings for toHaveBeenCalled, toHaveBeenCalledWith,... and other methods for mock functions.
This is pseudo code illustrating the use case (api test) ``` describe("Authentication service", () => testPromise("Should save user", ()=> { let requestResult = client->ServiceClient.saveUser(...) let savedUser = // retrieve saved...
Jest seems to have good support for promises with assertions: https://jestjs.io/docs/en/asynchronous#promises, which may be useful to provide.
Hey @glennsl I was trying to add the "binding" to `expect.addSnapshotSerializer()` in bs-jest and I found creating too much crap for this particular case. How it works it's simple, while...