mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 09:36:08 +00:00
fix(build): move the test db bootstrap under tests/
`.dockerignore` excludes `tests`, so the production build context carries scripts/test-db-bootstrap.ts without the tests/setup/db-global module it imports. tsconfig includes `**/*.ts`, so the `prebuild` typecheck fails on the missing module and every deploy since the test suites landed has died there. CI never saw it because tests/ exists on a runner. The script is test-only, so it belongs in the tree that is already ignored.
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@
|
||||
"verify": "bun run check && bun run test",
|
||||
"test:db:up": "podman compose -f docker-compose.test.yml up -d --wait postgres-test",
|
||||
"test:db:down": "podman compose -f docker-compose.test.yml down -v",
|
||||
"test:db:bootstrap": "bun run scripts/test-db-bootstrap.ts",
|
||||
"test:db:bootstrap": "bun run tests/setup/db-bootstrap.ts",
|
||||
"prepare": "husky",
|
||||
"postinstall": "prisma generate",
|
||||
"db:generate": "prisma generate",
|
||||
|
||||
Reference in New Issue
Block a user