-
```scm
(define sum (lambda (a b) (+ a b)))
(mock (sum # #) 15)
(sum 2 2) ;==> 15
(mock-restore (sum # #))
(sum 2 2) ;==> 4
(mock (sum # 0) 25)
(sum 2 0) ;==> 25
(sum 2 2) ;==> 4
(…
-
For tests, we now have the `trigger_swap_update!` macro, which simulates Boltz WS updates. The tests then check if our swap states were correctly updated.
Since some state transitions depend on onc…
-
How to mock this library to work with jest tests?
Without creating any mock and running jest tests after installing this library I get
```
/node_modules/@heap/react-native-heap/dist/js/Heap.js:1…
-
In docs we have a page with testing example. But, actually, in real tests we have a lot of dependencies and we need to make a lot of mocks, so it is not convenient to re-write fully mocked provider (a…
-
At least for the first month, we will be mocking our backend responses. We can use [nedb](https://github.com/louischatriot/nedb) for the same.
- [ ] npm init on /server folder
- [ ] Setting up nedb i…
-
So far, we have been successful at building dotnet-isolated middleware, but are trying to write unit tests to cover our Middleware's output, and the protection level for IFunctionBindingsFeature seems…
-
## Expected Behavior
`OnUpsertSearchAttributes` and `OnUpsertMemo` are just called when their methods are called. They were not developed to return values or return errors unlike many of our other …
cretz updated
2 months ago
-
### **Who notified us about the bug?**
@jannisvisser
### **Describe the bug**
When jwt is expired, we get a 500 error when resetting/mocking
### **Expected behavior**
A 401 error should be r…
-
I've run into an issue mocking REST and GraphQL queries using MSW in testing because [`setAbstractFetchFunc`](https://github.com/Shopify/shopify-app-js/blob/33d473f52f6b700473161563f8ecfaba2619fc59/pa…
-
### 1.1. Title
Mocking/Stubbing
### 1.2. Details
This idea aims to cover the following:
1. What is the Mocking?
2. What is in the background?
3. Why is it good for us?
### 2.1. Area
…