Change mocks file
By default, the MockResponsePlugin and GraphMockResponsePlugin Dev Proxy plugins looks for a file called mocks.json
in the current working directory.
To use a file with a different name, use:
devproxy --mocks-file my-mocks.json
Alternatively, you can specify the mocks file in the devproxyrc.json configuration file.
{
"mocksPlugin": {
"mocksFile": "mocks.json"
}
}
Learn more about the MockResponsePlugin
.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.