Skip to content

Commit

Permalink
Clear drizzle-kit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiSherman committed Nov 25, 2024
1 parent 2552c03 commit 675e285
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion drizzle-kit/tests/introspect/singlestore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
int,
mediumint,
singlestoreTable,
singlestoreView,
smallint,
text,
tinyint,
Expand Down
4 changes: 2 additions & 2 deletions drizzle-kit/tests/push/singlestore-push.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Docker from 'dockerode';
import { sql } from 'drizzle-orm';
import { int, singlestoreTable, singlestoreView } from 'drizzle-orm/singlestore-core';
import { int, singlestoreTable } from 'drizzle-orm/singlestore-core';
import fs from 'fs';
import getPort from 'get-port';
import { Connection, createConnection } from 'mysql2/promise';
Expand Down Expand Up @@ -65,6 +64,7 @@ beforeAll(async () => {
throw lastError;
}

await client.query('DROP DATABASE IF EXISTS drizzle;');
await client.query('CREATE DATABASE drizzle;');
await client.query('USE drizzle;');
});
Expand Down
1 change: 1 addition & 0 deletions drizzle-kit/tests/push/singlestore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ run(
throw lastError;
}

await context.client.query(`DROP DATABASE IF EXISTS \`drizzle\`;`);
await context.client.query('CREATE DATABASE drizzle;');
await context.client.query('USE drizzle;');
},
Expand Down

0 comments on commit 675e285

Please sign in to comment.