1.2.5 • Published 2 years ago

vtex-mocks v1.2.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago