fix(tests): set mocked state
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user