-
How do you mock these SVG components in Jest?
I import it in my files like suggested, but when it tries to retrieve it I get an error that the Module could not be found.
If I try the suggested …
-
Some blocks depend on the WP API, it would be great to be able to mock the API to preview these blocks in isolation.
-
**I'm submitting a ...** (check one with "x"):
- [x ] bug report
- [ ] feature request
- [ ] documentation issue
# Bug report
**Current behavior:**
Unable to mock the plugin as …
-
### Describe the feature
after migrating jest from babel to swc we found that now our unit tests have to specify an `__esModule: true` when mocking a module that has a default export.
example:
`…
-
I'm wondering if there's a way of mocking an API which takes a long time to respond. I currently have issues with slow APIs and want to be able to test that my requests wait long enough for them. I al…
-
Assuming the following schema:
```
type Query {
fields: [Field!]!
}
interface Field {
id: ID!
}
type FooField implements Field {
sub: SubFoo
}
type SubFoo {
name: String!
…
-
🙏 so much for pulling all of this together for testing API wrapper packages -- this is a godsend.
I randomly came across arguments *against* mocking (or rather, there's tradeoffs involved) and some…
-
The Pester setup for mocking `Get-ZLocationDatabaseFilePath` and `Get-ZLocationLegacyBackupFilePath` doesn't work: the mocked functions are never actually called and tests run using my actual database…
-
I have a monorepo containing a react frontend, a node backend using babel for es6 import syntax support and a common library. The common library (also using babel) has some api client code built on ax…
-
I used the library for a project and tried to come up with unit tests for it by mocking the name server tho I failed. It would be nice to have one example for that. I could come up with a PR for that …