Skip to content

Commit

Permalink
ref: Nextjs CI improvements (#3666)
Browse files Browse the repository at this point in the history
* Remove lockfiles from nextjs example app tests

* Use yarn resolutions to use local deps only
  • Loading branch information
kamilogorek authored Jun 10, 2021
1 parent 4a46e21 commit 4121705
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2,589 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"test:unit": "jest",
"test:integration": "run-s test:integration:clean test:integration:build test:integration:server test:integration:client",
"test:integration:clean": "cd test/integration && rimraf node_modules .next .env.local",
"test:integration:build": "cd test/integration && yarn && yarn build",
"test:integration:build": "cd test/integration && yarn --no-lockfile && yarn build",
"test:integration:server": "cd test/integration && node test/server.js --silent",
"test:integration:client": "cd test/integration && node test/client.js --silent",
"pack": "npm pack",
Expand Down
2 changes: 2 additions & 0 deletions packages/nextjs/test/integration/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
/node_modules
/.pnp
.pnp.js
yarn.lock
package-lock.json

# testing
/coverage
Expand Down
17 changes: 13 additions & 4 deletions packages/nextjs/test/integration/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"name": "with-typescript",
"version": "1.0.0",
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start",
"type-check": "tsc"
"start": "next start"
},
"dependencies": {
"@sentry/nextjs": "file:../../",
Expand All @@ -23,5 +21,16 @@
"typescript": "^4.2.4",
"yargs": "^16.2.0"
},
"license": "MIT"
"resolutions": {
"@sentry/browser": "file:../../../browser",
"@sentry/core": "file:../../../core",
"@sentry/hub": "file:../../../hub",
"@sentry/integrations": "file:../../../integrations",
"@sentry/minimal": "file:../../../minimal",
"@sentry/node": "file:../../../node",
"@sentry/react": "file:../../../react",
"@sentry/tracing": "file:../../../tracing",
"@sentry/types": "file:../../../types",
"@sentry/utils": "file:../../../utils"
}
}
Loading

0 comments on commit 4121705

Please sign in to comment.