Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gloria Giannascoli committed Jul 29, 2024
1 parent 677e636 commit fc46396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mocks/MockWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const MockWrapper: React.FC<{ children: React.ReactNode }> = ({ children }) => {
const [started, setStarted] = useState<boolean>(false)

async function enableMocking() {
if (process.env.NODE_ENV !== "development") {
/*if (process.env.NODE_ENV !== "development") {
setStarted(true)
return
}
}*/
const { worker } = await import("./browser")
await worker.start()
setStarted(true)
Expand Down

0 comments on commit fc46396

Please sign in to comment.