Skip to content

Commit

Permalink
ci: switch dependencies into dev dependencies in tests (#319)
Browse files Browse the repository at this point in the history
This is important for renovate to correctly identify conventional
commit type (chore instead of fix for dev dependencies).
  • Loading branch information
rostislav-simonik authored Dec 25, 2022
1 parent 1d6b3db commit 11ee750
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/__providers__/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const project = () =>
overwrite: true,
})
api.packageJson.merge({
dependencies: {
devDependencies: {
'@prisma/client': Package.devDependencies['@prisma/client'],
prisma: Package.devDependencies.prisma,
},
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/fixtures/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build:prisma": "prisma generate",
"dev": "ts-node main"
},
"dependencies": {
"devDependencies": {
"@prisma/client": "__dynamic__",
"graphql": "15.5.1",
"nexus": "1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/fixtures/kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dev:server": "yarn ts-node-dev --transpile-only server",
"db:migrate": "prisma db push --force-reset --accept-data-loss && ts-node prisma/seed"
},
"dependencies": {
"devDependencies": {
"@prisma/client": "__dynamic__",
"@types/node": "^18.11.17",
"apollo-server": "^3.11.1",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/fixtures/ncc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start:dist": "node ./dist",
"start:ts": "ts-node main"
},
"dependencies": {
"devDependencies": {
"@prisma/client": "__dynamic__",
"@vercel/ncc": "0.36.0",
"graphql": "15.5.1",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/fixtures/ts-node-import-error/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "prisma generate"
},
"dependencies": {
"devDependencies": {
"@prisma/client": "__dynamic__",
"graphql": "^15.8.0",
"nexus": "1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/fixtures/ts-node-unused/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "prisma generate"
},
"dependencies": {
"devDependencies": {
"@prisma/client": "__dynamic__",
"graphql": "^15.8.0",
"nexus": "1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/kitchen-sink.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ beforeEach(() => {
ctx.fixture.use(Path.join(__dirname, 'fixtures/kitchen-sink'))
if (process.env.PRISMA_VERSION === 'past') {
ctx.packageJson.merge({
dependencies: {
devDependencies: {
typescript: '4.7.4',
},
})
Expand Down

0 comments on commit 11ee750

Please sign in to comment.