45 lines
2.0 KiB
Plaintext
45 lines
2.0 KiB
Plaintext
|
||
> @ainative-okr/backend@1.0.0 test
|
||
> export DATABASE_URL='file:./test.db' JWT_SECRET='test-secret'; npm run db:setup && prisma db seed && node --import tsx --test test/**/*.test.ts
|
||
|
||
|
||
> @ainative-okr/backend@1.0.0 db:setup
|
||
> prisma generate && node scripts/setup-sqlite.mjs
|
||
|
||
warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
|
||
For more information, see: https://pris.ly/prisma-config
|
||
|
||
Environment variables loaded from .env
|
||
Prisma schema loaded from prisma/schema.prisma
|
||
|
||
✔ Generated Prisma Client (v6.19.3) to ./../node_modules/@prisma/client in 49ms
|
||
|
||
Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
|
||
|
||
Tip: Interested in query caching in just a few lines of code? Try Accelerate today! https://pris.ly/tip-3-accelerate
|
||
|
||
(node:16992) ExperimentalWarning: SQLite is an experimental feature and might change at any time
|
||
(Use `node --trace-warnings ...` to show where the warning was created)
|
||
SQLite schema applied to /Users/thanhnguyen/Documents/AI/HarnessHkt/Harness_Hakathon/Output_CASAN5_REFINED/AINative_OKR_CASAN5/backend/prisma/test.db
|
||
warn The configuration property `package.json#prisma` is deprecated and will be removed in Prisma 7. Please migrate to a Prisma config file (e.g., `prisma.config.ts`).
|
||
For more information, see: https://pris.ly/prisma-config
|
||
|
||
Environment variables loaded from .env
|
||
Running seed command `tsx prisma/seed.ts` ...
|
||
Seed completed successfully.
|
||
|
||
🌱 The seed command has been executed.
|
||
✔ HTTP auth, role filtering, validation, and progress update are real (595.135958ms)
|
||
✔ golden objective list response does not drift (239.757792ms)
|
||
✔ AuthService rejects invalid passwords and signs valid users (473.824708ms)
|
||
✔ ObjectivesService applies employee role filtering (4.052375ms)
|
||
✔ KeyResultsService blocks employee updates to another owner and recalculates owned progress (8.719334ms)
|
||
ℹ tests 5
|
||
ℹ suites 0
|
||
ℹ pass 5
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 1505.066791
|