Skip to content

Commit 1c39191

Browse files
committed
test: check if skipping extensions lookups help
1 parent 08ac042 commit 1c39191

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/test-e2e.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ jobs:
205205
# one job may wait for deploys in other jobs (only one deploy may be in progress for
206206
# a given alias at a time), resulting in cascading timeouts.
207207
DEPLOY_ALIAS: vercel-next-e2e-${{ matrix.version_spec.selector }}-${{ matrix.group }}
208+
NODE_OPTIONS: "--import /home/runner/work/opennextjs-netlify/opennextjs-netlify/opennextjs-netlify/skip-integrations.mjs"
208209
run: node run-tests.js -g ${{ matrix.group }}/${{ needs.setup.outputs.total }} -c ${TEST_CONCURRENCY} --type e2e
209210
working-directory: ${{ env.next-path }}
210211

skip-integrations.mjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { http, HttpResponse, passthrough } from 'msw'
2+
// eslint-disable-next-line import/extensions
3+
import { setupServer } from 'msw/node'
4+
5+
const server = setupServer(
6+
http.get(
7+
'https://api.netlifysdk.com/team/:accountId/integrations/installations/meta/:siteId',
8+
() => {
9+
return HttpResponse.json([])
10+
},
11+
),
12+
http.get('https://api.netlifysdk.com/site/:siteId/integrations/safe', () => {
13+
return HttpResponse.json([])
14+
}),
15+
http.all(/.*/, () => passthrough()),
16+
)
17+
server.listen()

0 commit comments

Comments
 (0)