Persist Roles and Permissions between test runs #1481
Annotations
3 errors
⚡ Run vitest:
tests/setup/setup-test-env.ts#L22
Error: Console error was called. Call consoleError.mockImplementation(() => {}) if this is expected.
❯ Console.<anonymous> tests/setup/setup-test-env.ts:22:10
❯ Module.cleanupDb tests/db-utils.ts:157:11
❯ tests/setup/db-setup.ts:19:2
|
⚡ Run vitest:
app/routes/users+/$username.test.tsx#L44
PrismaClientKnownRequestError:
Invalid `prisma.user.create()` invocation:
The table `main.User` does not exist in the current database.
❯ _n.handleRequestError node_modules/@prisma/client/runtime/library.js:121:7749
❯ _n.handleAndLogRequestError node_modules/@prisma/client/runtime/library.js:121:7057
❯ _n.request node_modules/@prisma/client/runtime/library.js:121:6741
❯ l node_modules/@prisma/client/runtime/library.js:130:9355
❯ app/routes/users+/$username.test.tsx:44:15
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'P2021', clientVersion: '5.17.0', meta: { modelName: 'User', table: 'main.User' }, batchRequestIdx: undefined }
|
⚡ Run vitest
Process completed with exit code 1.
|
Loading