Skip to content

Commit

Permalink
test: fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan committed May 5, 2024
1 parent b7ae145 commit fbeb97e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/features/entity-generator/OddTableNames.mysql.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ describe(schemaName, () => {
orm.config.get('entityGenerator').entitySchema = entitySchema;
const dump = await orm.entityGenerator.generate({
save: true,
path: './temp/entities',
path: './temp/entities-1',
});
expect(dump).toMatchSnapshot('mysql');
await expect(pathExists('./temp/entities/E123TableName.ts')).resolves.toBe(true);
await remove('./temp/entities');
await expect(pathExists('./temp/entities-1/E123TableName.ts')).resolves.toBe(true);
await remove('./temp/entities-1');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ describe(dbName, () => {
orm.config.get('entityGenerator').entitySchema = entitySchema;
const dump = await orm.entityGenerator.generate({
save: true,
path: './temp/entities',
path: './temp/entities-2',
});
expect(dump).toMatchSnapshot('postgre');
await expect(pathExists('./temp/entities/E123TableName.ts')).resolves.toBe(true);
await remove('./temp/entities');
await expect(pathExists('./temp/entities-2/E123TableName.ts')).resolves.toBe(true);
await remove('./temp/entities-2');
});
});

0 comments on commit fbeb97e

Please sign in to comment.