Node >= v16.15
Generate a mock-list.js
file for configuration.
npx cache-mocks --init
Download fresh mock files and save them
npx cache-mocks
or
npx cache-mocks --target ./src/mocks --ext js
--target <x>
Specify a target directory for the mocks to be saved
Type: string
Default: ./mocks
--ext <x>
Specify what file extension the target files should be saved with
Type: json | js | ts
Default: json