Skip to content

Commit 8d09675

Browse files
committed
fix(tests): set mocked state
1 parent e815629 commit 8d09675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/mocks/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import urls from "url"
88

99
//Mocked state
1010
let mocked = false
11-
process.env.METRICS_MOCKED = true
1211

1312
//Mocking
1413
export default async function({graphql, rest}) {
1514
//Check if already mocked
1615
if (mocked)
1716
return {graphql, rest}
1817
mocked = true
18+
process.env.METRICS_MOCKED = true
1919
console.debug("metrics/compute/mocks > mocking")
2020

2121
//Load mocks

0 commit comments

Comments
 (0)