diff --git a/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema-mongo/__snapshots__/binary.test.ts.snap b/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema-mongo/__snapshots__/binary.test.ts.snap index 07f0d26b1cef..34f0ba7cdf67 100644 --- a/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema-mongo/__snapshots__/binary.test.ts.snap +++ b/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema-mongo/__snapshots__/binary.test.ts.snap @@ -338,7 +338,7 @@ class PrismaClient { - Use Driver Adapters: https://pris.ly/d/driver-adapters \`; } else { - message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime + '\`).' + message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime.prettyName + '\`).' } message += \` diff --git a/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema-mongo/__snapshots__/library.test.ts.snap b/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema-mongo/__snapshots__/library.test.ts.snap index c3cbcaff36bd..cc5ec5b7bd7f 100644 --- a/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema-mongo/__snapshots__/library.test.ts.snap +++ b/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema-mongo/__snapshots__/library.test.ts.snap @@ -338,7 +338,7 @@ class PrismaClient { - Use Driver Adapters: https://pris.ly/d/driver-adapters \`; } else { - message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime + '\`).' + message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime.prettyName + '\`).' } message += \` diff --git a/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema/__snapshots__/binary.test.ts.snap b/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema/__snapshots__/binary.test.ts.snap index 3402e16c8067..e7f6fbad31ab 100644 --- a/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema/__snapshots__/binary.test.ts.snap +++ b/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema/__snapshots__/binary.test.ts.snap @@ -359,7 +359,7 @@ class PrismaClient { - Use Driver Adapters: https://pris.ly/d/driver-adapters \`; } else { - message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime + '\`).' + message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime.prettyName + '\`).' } message += \` diff --git a/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema/__snapshots__/library.test.ts.snap b/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema/__snapshots__/library.test.ts.snap index 0d73950b12d6..b39a7a7ac3bf 100644 --- a/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema/__snapshots__/library.test.ts.snap +++ b/packages/client/src/__tests__/integration/happy/not-so-exhaustive-schema/__snapshots__/library.test.ts.snap @@ -359,7 +359,7 @@ class PrismaClient { - Use Driver Adapters: https://pris.ly/d/driver-adapters \`; } else { - message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime + '\`).' + message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime.prettyName + '\`).' } message += \` diff --git a/packages/client/src/generation/TSClient/TSClient.ts b/packages/client/src/generation/TSClient/TSClient.ts index 75acffd33038..02c789b3b02b 100644 --- a/packages/client/src/generation/TSClient/TSClient.ts +++ b/packages/client/src/generation/TSClient/TSClient.ts @@ -371,7 +371,7 @@ class PrismaClient { - Use Driver Adapters: https://pris.ly/d/driver-adapters \`; } else { - message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime + '\`).' + message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`' + runtime.prettyName + '\`).' } message += \` diff --git a/packages/client/tests/e2e/unsupported-browser-error/tests/main.ts b/packages/client/tests/e2e/unsupported-browser-error/tests/main.ts index ae408ec8f6b7..021153abb6b0 100644 --- a/packages/client/tests/e2e/unsupported-browser-error/tests/main.ts +++ b/packages/client/tests/e2e/unsupported-browser-error/tests/main.ts @@ -2,7 +2,7 @@ test('proper error is shown when the client is bundled into a frontend', async ( const message = await require('../dist/new-client.js').call() expect(message).toMatchInlineSnapshot(` -"PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`node\`). +"PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in \`Node.js\`). If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report" `) })