Skip to content

Instantly share code, notes, and snippets.

@matteofigus
Created November 20, 2017 15:28
Show Gist options
  • Save matteofigus/adf9341b071f37ed5574ad388c895a0f to your computer and use it in GitHub Desktop.
Save matteofigus/adf9341b071f37ed5574ad388c895a0f to your computer and use it in GitHub Desktop.
Mocks example
{
"registries": [
"https://your-registry.com/"
],
"mocks": {
"plugins": {
"static": {
"log": ""
},
"dynamic": {
"decrypt": "../mocked-plugins/decrypt.js",
"discover": "../mocked-plugins/discover.js",
"domainsv2": "../mocked-plugins/domainsv2-plugin.js",
"getToggle": "../mocked-plugins/hobknob-plugin.js",
"graphql": "../mocked-plugins/graphql-plugin.js",
"abTest": "../mocked-plugins/abtest-plugin.js",
"languageHandler": "../node_modules/oc-language-handler-plugin/mock.js"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment