Browse Source

chore(testing): Add log statement for clearing tables

Michael Bromley 5 years ago
parent
commit
6b2d3e1e20
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/testing/src/data-population/clear-all-tables.ts

+ 3 - 0
packages/testing/src/data-population/clear-all-tables.ts

@@ -8,6 +8,9 @@ import { createConnection } from 'typeorm';
  * Clears all tables in the detabase sepcified by the connectionOptions
  */
 export async function clearAllTables(config: VendureConfig, logging = true) {
+    if (logging) {
+        console.log('Clearing all tables...');
+    }
     config = await preBootstrapConfig(config);
     const entityIdStrategy = config.entityIdStrategy;
     const connection = await createConnection({ ...config.dbConnectionOptions });