strong-mock
robot
strong-mock | robot | |
---|---|---|
4 | 4 | |
92 | 1,889 | |
- | - | |
7.5 | 4.1 | |
13 days ago | about 1 month ago | |
TypeScript | JavaScript | |
MIT License | BSD 2-clause "Simplified" 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.
strong-mock
-
libraries you are happy that you discovered them
Shameless plug, but feel free to try https://github.com/NiGhTTraX/strong-mock as an alternative.
- strong-mock: Type safe mocking library for TypeScript
-
"as unknown as Promise<Response>" if you don't want to mock the whole Response object
If checking that getData is called using the correct input, consider using strong-mock.
-
How do you test an Axios call to a GraphQL API in React?
Depending on how you want to check the call, you might want to use a spying library (sinon, jest.fn etc). Check out strong-mock if you're using TypeScript.
robot
- Robot – A fast 1kB functional library for creating Finite State Machines
-
libraries you are happy that you discovered them
robot3: https://github.com/matthewp/robot (finite state machines)
-
I built a card game with framer-motion and xstate 👀
I would prefer a more functional approach to defining a state machine, something like this: https://github.com/matthewp/robot.
-
🚀10 Trending projects on GitHub for web developers - 15th October 2021
Please star the repository on GitHub.
What are some alternatives?
ts-mockito - Mocking library for TypeScript
wonka - 🎩 A tiny but capable push & pull stream library for TypeScript and Flow
mock-inspect - Mocks network requests and allows you to make assertions about how these requests happened. Supports auto-mocking of graphQL requests given a valid schema.
tiny-cnn - header only, dependency-free deep learning framework in C++14
data - Data modeling and relation library for testing JavaScript applications.
crux - A collection of small, focussed, utilities to help maintain decoupled and lightweight code in the browser.
qunit - 🔮 An easy-to-use JavaScript unit testing framework.
ng-mocks - Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup
state-machine - A small Javascript Promise-based Finite State Machine implementation
shoehorn - Work seamlessly with partial mocks in TypeScript.
AI-Toolbox - A C++ framework for MDPs and POMDPs with Python bindings