Skip to content

Commit

Permalink
Configure DataSource for testing with autoSave disabled and schema dr…
Browse files Browse the repository at this point in the history
…opping enabled
  • Loading branch information
cgoinglove committed Jul 23, 2024
1 parent 89fac8b commit 81c4c11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ suite("typeorm with SQL.js", () => {
type: "sqljs",
entities: [Todo],
synchronize: true,
autoSave: false,
dropSchema: true,
});

await dataSource.initialize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ export const AppDataSource = new DataSource({
synchronize: true,
logging: true,
entities: [Todo],
autoSave: false,
dropSchema: true,
});

0 comments on commit 81c4c11

Please sign in to comment.