fix(tests): set mocked state

This commit is contained in:
lowlighter
2022-06-29 08:50:09 -04:00
parent e8156294db
commit 8d09675dfd

View File

@@ -8,7 +8,6 @@ import urls from "url"
//Mocked state //Mocked state
let mocked = false let mocked = false
process.env.METRICS_MOCKED = true
//Mocking //Mocking
export default async function({graphql, rest}) { export default async function({graphql, rest}) {
@@ -16,6 +15,7 @@ export default async function({graphql, rest}) {
if (mocked) if (mocked)
return {graphql, rest} return {graphql, rest}
mocked = true mocked = true
process.env.METRICS_MOCKED = true
console.debug("metrics/compute/mocks > mocking") console.debug("metrics/compute/mocks > mocking")
//Load mocks //Load mocks