vtex-mocks
v1.2.5
Published
A package to centralize all vtex mocks
Readme
VTEX Mocks
Usage
- Install the package as a dev dependency:
yarn add vtex-mocks --dev
- Add the command to setup the mocks:
{
"scripts": {
"vtex-mocks": "vtex-mocks setup"
}
}- Run the command:
yarn vtex-mocks
- Add the command before the test command:
{
"scripts": {
"test": "npm run vtex-mocks && jest"
}
}The command will create the
__mocks__folder if not exist and read thepackage.jsondevDependencies to generate the mocks in base of the used apps
