mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Add console.log to auto-migration tests
This commit is contained in:
parent
4387a2c400
commit
cbb39dad66
@ -212,9 +212,12 @@ import.meta.vitest?.test("applies migrations concurrently", runTest(async ({ exp
|
||||
}));
|
||||
|
||||
import.meta.vitest?.test("applies migrations concurrently with 20 concurrent migrations", runTest(async ({ expect, prismaClient }) => {
|
||||
const promises = Array.from({ length: 20 }, () =>
|
||||
applyMigrations({ prismaClient, migrationFiles: exampleMigrationFiles1, artificialDelayInSeconds: 1, schema: 'public' })
|
||||
);
|
||||
const promises = Array.from({ length: 20 }, async (_, i) => {
|
||||
console.log("Applying migration", i);
|
||||
const result = await applyMigrations({ prismaClient, migrationFiles: exampleMigrationFiles1, artificialDelayInSeconds: 1, schema: 'public' });
|
||||
console.log("Migration", i, "applied", result.newlyAppliedMigrationNames);
|
||||
return result;
|
||||
});
|
||||
|
||||
const results = await Promise.all(promises);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user