-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): types oom and inferred length errors (#20161)
- Loading branch information
Showing
28 changed files
with
1,774 additions
and
1,056 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
347 changes: 174 additions & 173 deletions
347
...ests__/integration/happy/not-so-exhaustive-schema-mongo/__snapshots__/binary.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
347 changes: 174 additions & 173 deletions
347
...__/integration/happy/not-so-exhaustive-schema-mongo/__snapshots__/data-proxy.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
347 changes: 174 additions & 173 deletions
347
...sts__/integration/happy/not-so-exhaustive-schema-mongo/__snapshots__/library.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
313 changes: 157 additions & 156 deletions
313
...rc/__tests__/integration/happy/not-so-exhaustive-schema/__snapshots__/binary.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
313 changes: 157 additions & 156 deletions
313
..._tests__/integration/happy/not-so-exhaustive-schema/__snapshots__/data-proxy.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
313 changes: 157 additions & 156 deletions
313
...c/__tests__/integration/happy/not-so-exhaustive-schema/__snapshots__/library.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import * as Extensions from './Extensions' | ||
import { DefaultSelection, GetResult } from './GetResult' | ||
import { Payload } from './Payload' | ||
import * as Public from './Public' | ||
import * as Result from './Result' | ||
import * as Utils from './Utils' | ||
|
||
/** Specific types */ | ||
export { Result } | ||
export { Extensions } | ||
export { Utils } | ||
export { Public } | ||
|
||
/** General types */ | ||
export { type GetResult } | ||
export { type Payload } | ||
export { type DefaultSelection } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
packages/client/tests/e2e/issues/19999-tsc-extensions-oom/_steps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { $ } from 'zx' | ||
|
||
import { executeSteps } from '../../_utils/executeSteps' | ||
|
||
void executeSteps({ | ||
setup: async () => { | ||
await $`pnpm install` | ||
await $`pnpm exec prisma db push --force-reset` | ||
await $`pnpm exec prisma generate` | ||
}, | ||
test: async () => { | ||
await $`ts-node src/index.ts` | ||
await $`pnpm exec tsc` | ||
}, | ||
finish: async () => { | ||
await $`echo "done"` | ||
}, | ||
// keep: true, // keep docker open to debug it | ||
}) |
14 changes: 14 additions & 0 deletions
14
packages/client/tests/e2e/issues/19999-tsc-extensions-oom/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"private": true, | ||
"version": "0.0.0", | ||
"main": "index.js", | ||
"scripts": {}, | ||
"dependencies": { | ||
"@prisma/client": "../../prisma-client-0.0.0.tgz" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "16.18.11", | ||
"prisma": "../../prisma-0.0.0.tgz", | ||
"typescript": "4.9.4" | ||
} | ||
} |
Oops, something went wrong.