mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 02:34:21 +00:00
fix(db): generator keeps NOT NULL boolean defaults; fails if a JSON interface import survives
This commit is contained in:
@@ -855,6 +855,7 @@ describe('generateEntities — migrations path is anchored to SERVER_ROOT, not c
|
||||
'MIGPATH-001: generation still finds migrations when run from the repo root instead of server/',
|
||||
async () => {
|
||||
const originalCwd = process.cwd();
|
||||
// process.chdir() is only safe because vitest.config.ts uses pool: 'forks' (a worker thread cannot chdir).
|
||||
process.chdir(path.join(__dirname, '../../../..')); // server/tests/unit/db -> repo root
|
||||
try {
|
||||
const { files } = await generateEntities();
|
||||
|
||||
Reference in New Issue
Block a user