Skip to content

Commit

Permalink
fix(deps): update engines to v2.20.0-12.64d2ea05f0cae2391264c3e4b75fe…
Browse files Browse the repository at this point in the history
…777f3f6b5c3 (#6191)

* fix(deps): update engines to v2.20.0-12.64d2ea05f0cae2391264c3e4b75fe777f3f6b5c3

* test(migrate): update tests

* test(client): update test, remove stack line

* test(cli): increase timeout for version test

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Joël <joel.galeran@gmail.com>
  • Loading branch information
3 people committed Mar 23, 2021
1 parent 10b0065 commit cc49a18
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 38 deletions.
2 changes: 1 addition & 1 deletion src/packages/cli/package.json
Expand Up @@ -128,7 +128,7 @@
"precommit": "lint-staged"
},
"dependencies": {
"@prisma/engines": "2.20.0-8.c21eb9152ae57c9b72c1001461d44e3bc926c627"
"@prisma/engines": "2.20.0-12.64d2ea05f0cae2391264c3e4b75fe777f3f6b5c3"
},
"lint-staged": {
"*.ts": [
Expand Down
2 changes: 1 addition & 1 deletion src/packages/cli/src/__tests__/version.test.ts
Expand Up @@ -44,7 +44,7 @@ describe('version', () => {
const envVar = engineEnvVarMap[engine]
delete process[envVar]
}
}, 10000)
}, 15000)
})

function cleanSnapshot(str: string): string {
Expand Down
4 changes: 2 additions & 2 deletions src/packages/client/package.json
Expand Up @@ -59,7 +59,7 @@
"devDependencies": {
"@prisma/debug": "workspace:*",
"@prisma/engine-core": "workspace:*",
"@prisma/engines": "2.20.0-8.c21eb9152ae57c9b72c1001461d44e3bc926c627",
"@prisma/engines": "2.20.0-12.64d2ea05f0cae2391264c3e4b75fe777f3f6b5c3",
"@prisma/generator-helper": "workspace:*",
"@prisma/get-platform": "workspace:*",
"@prisma/migrate": "workspace:*",
Expand Down Expand Up @@ -126,7 +126,7 @@
}
},
"dependencies": {
"@prisma/engines-version": "2.20.0-8.c21eb9152ae57c9b72c1001461d44e3bc926c627"
"@prisma/engines-version": "2.20.0-12.64d2ea05f0cae2391264c3e4b75fe777f3f6b5c3"
},
"lint-staged": {
"*.ts": [
Expand Down
@@ -1,39 +1,24 @@
import { getTestClient } from '../../../../utils/getTestClient'

test('missing-relation', async () => {
expect.assertions(1)
expect.assertions(2)
const PrismaClient = await getTestClient()
const prisma = new PrismaClient()

await expect(
prisma.post.findMany({
try {
await prisma.post.findMany({
include: {
author: true,
},
}),
).rejects.toThrowErrorMatchingInlineSnapshot(`
Invalid \`prisma.post.findMany()\` invocation in
/client/src/__tests__/integration/errors/missing-relation/test.ts:9:17
6 const prisma = new PrismaClient()
7
8 await expect(
→ 9 prisma.post.findMany(
PANIC in query-engine/core/src/response_ir/internal.rs:398:26
Application logic invariant error: received null value for field author which may not be null
This is a non-recoverable error which probably happens when the Prisma Query Engine has a panic.
TEST_GITHUB_LINK
If you want the Prisma team to look into it, please open the link above 🙏
To increase the chance of success, please post your schema and a snippet of
how you used Prisma Client in the issue.
`)

prisma.$disconnect()
})
} catch (e) {
expect(e.message).toContain('PANIC in')
expect(e.message).toContain(
'Application logic invariant error: received null value for field author which may not be null',
)
} finally {
prisma.$disconnect()
}
})

// Please don't remove, this is used to debug this test
Expand Down
2 changes: 1 addition & 1 deletion src/packages/engine-core/package.json
Expand Up @@ -41,7 +41,7 @@
},
"dependencies": {
"@prisma/debug": "workspace:*",
"@prisma/engines": "2.20.0-8.c21eb9152ae57c9b72c1001461d44e3bc926c627",
"@prisma/engines": "2.20.0-12.64d2ea05f0cae2391264c3e4b75fe777f3f6b5c3",
"@prisma/generator-helper": "workspace:*",
"@prisma/get-platform": "workspace:*",
"chalk": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/packages/fetch-engine/package.json
Expand Up @@ -14,7 +14,7 @@
],
"bugs": "https://github.com/prisma/prisma/issues",
"devDependencies": {
"@prisma/engines-version": "2.20.0-8.c21eb9152ae57c9b72c1001461d44e3bc926c627",
"@prisma/engines-version": "2.20.0-12.64d2ea05f0cae2391264c3e4b75fe777f3f6b5c3",
"@types/find-cache-dir": "3.2.0",
"@types/jest": "26.0.21",
"@types/node": "12.20.6",
Expand Down
2 changes: 1 addition & 1 deletion src/packages/migrate/package.json
Expand Up @@ -16,7 +16,7 @@
"version": "latest"
},
"devDependencies": {
"@prisma/engines-version": "2.20.0-8.c21eb9152ae57c9b72c1001461d44e3bc926c627",
"@prisma/engines-version": "2.20.0-12.64d2ea05f0cae2391264c3e4b75fe777f3f6b5c3",
"@prisma/generator-helper": "workspace:*",
"@prisma/sdk": "workspace:*",
"@types/diff": "4.0.2",
Expand Down
3 changes: 2 additions & 1 deletion src/packages/migrate/src/__tests__/DbDrop.test.ts
Expand Up @@ -48,7 +48,8 @@ describe('drop', () => {

const result = DbDrop.new().parse(['--preview-feature', '--force'])
await expect(result).rejects.toMatchInlineSnapshot(`
Failed to delete SQLite database at \`dev.db\`: No such file or directory (os error 2)
Failed to delete SQLite database at \`dev.db\`.
No such file or directory (os error 2)
`)
Expand Down
3 changes: 2 additions & 1 deletion src/packages/migrate/src/__tests__/MigrateDev.test.ts
Expand Up @@ -471,8 +471,9 @@ describe('sqlite', () => {
try {
await MigrateDev.new().parse([])
} catch (e) {
expect(e.code).toEqual('P3006')
expect(e.message).toContain(
'Database error: Error querying the database: near "BROKEN": syntax error',
'Error querying the database: near "BROKEN": syntax error',
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/packages/migrate/src/__tests__/rpc.test.ts
Expand Up @@ -300,7 +300,7 @@ it('markMigrationRolledBack - existing-db-1-migration', async () => {
})
} catch (e) {
expect(e.message).toContain(
'Database error: Error accessing result set, column not found: KAPUTT',
'Error accessing result set, column not found: KAPUTT',
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/packages/sdk/package.json
Expand Up @@ -47,7 +47,7 @@
"dependencies": {
"@prisma/debug": "workspace:*",
"@prisma/engine-core": "workspace:*",
"@prisma/engines": "2.20.0-8.c21eb9152ae57c9b72c1001461d44e3bc926c627",
"@prisma/engines": "2.20.0-12.64d2ea05f0cae2391264c3e4b75fe777f3f6b5c3",
"@prisma/fetch-engine": "workspace:*",
"@prisma/generator-helper": "workspace:*",
"@prisma/get-platform": "workspace:*",
Expand Down

0 comments on commit cc49a18

Please sign in to comment.