Skip to content

Commit

Permalink
fix(tests): set mocked state
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Jun 29, 2022
1 parent e815629 commit 8d09675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mocks/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import urls from "url"

//Mocked state
let mocked = false
process.env.METRICS_MOCKED = true

//Mocking
export default async function({graphql, rest}) {
//Check if already mocked
if (mocked)
return {graphql, rest}
mocked = true
process.env.METRICS_MOCKED = true
console.debug("metrics/compute/mocks > mocking")

//Load mocks
Expand Down

0 comments on commit 8d09675

Please sign in to comment.