Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux
Although I highly recommend using a snap
sudo snap install postman
tar -xzf Postman-linux-x64-5.3.2.tar.gz
Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux
Although I highly recommend using a snap
sudo snap install postman
tar -xzf Postman-linux-x64-5.3.2.tar.gz
This is designed as a simple React
component mock to be used with Jest
, that still presents enough information to be useful in a Snapshot test. It's handy when you either don't want to shallow render, or are unable to.
To use this mock, insert the following into your test file, to mock the sub-components, substituting out the names:
jest.mock("../MyComponent", () => ({ MyComponent: (props) => mockComponent("MyComponent", props) }));