vtex-mocks
v1.2.5
Published
A package to centralize all vtex mocks
Downloads
12
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.json
devDependencies to generate the mocks in base of the used apps