fix: disable serviceworker in integration tests (#2274)

This commit is contained in:
Zach Pomerantz 2021-08-31 11:00:19 -07:00 committed by GitHub
parent 13a289f6f1
commit f51335df9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

@ -42,6 +42,7 @@ jobs:
env:
CI: false
REACT_APP_NETWORK_URL: "https://mainnet.infura.io/v3/4bf032f2d38a4ed6bb975b80d6340847"
REACT_APP_SERVICE_WORKER: false
- run: yarn integration-test
env:

@ -86,4 +86,6 @@ ReactDOM.render(
document.getElementById('root')
)
serviceWorkerRegistration.register()
if (process.env.REACT_APP_SERVICE_WORKER !== 'false') {
serviceWorkerRegistration.register()
}