Skip to content

Commit 46fbf5c

Browse files
committed
Restore package.json in cleanup trap.
1 parent 311fde3 commit 46fbf5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/nextjs/test/integration/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@sentry/nextjs": "file:../../",
14-
"next": "10.x",
14+
"next": "latest",
1515
"react": "^17.0.1",
1616
"react-dom": "^17.0.1"
1717
},
@@ -24,7 +24,6 @@
2424
"yargs": "^16.2.0"
2525
},
2626
"resolutions": {
27-
"next": "./node_modules/next/dist",
2827
"@sentry/browser": "file:../../../browser",
2928
"@sentry/core": "file:../../../core",
3029
"@sentry/integrations": "file:../../../integrations",

packages/nextjs/test/run-integration-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ START_TIME=$(date -R)
99
function cleanup {
1010
echo "[nextjs] Cleaning up..."
1111
mv next.config.js.bak next.config.js 2>/dev/null || true
12+
mv package.json.bak package.json || true
1213
rm -rf node_modules 2>/dev/null || true
1314

1415
# Delete yarn's cached versions of sentry packages added during this test run, since every test run installs multiple

0 commit comments

Comments
 (0)