vtex-mocks
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

VTEX Mocks

All Contributors

npm-link

Usage

  1. Install the package as a dev dependency:
yarn add vtex-mocks --dev
  1. Add the command to setup the mocks:
{
  "scripts": {
    "vtex-mocks": "vtex-mocks setup"
  }
}
  1. Run the command:
yarn vtex-mocks
  1. 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 the package.json devDependencies to generate the mocks in base of the used apps

Readme

Keywords

none

Package Sidebar

Install

npm i vtex-mocks

Weekly Downloads

0

Version

1.2.5

License

ISC

Unpacked Size

112 kB

Total Files

150

Last publish

Collaborators

  • maik3345