(sequelize)
| 136 | }, |
| 137 | |
| 138 | async clearDatabase(sequelize) { |
| 139 | const qi = sequelize.getQueryInterface(); |
| 140 | await qi.dropAllTables(); |
| 141 | sequelize.modelManager.models = []; |
| 142 | sequelize.models = {}; |
| 143 | |
| 144 | if (qi.dropAllEnums) { |
| 145 | await qi.dropAllEnums(); |
| 146 | } |
| 147 | await this.dropTestSchemas(sequelize); |
| 148 | }, |
| 149 | |
| 150 | async dropTestSchemas(sequelize) { |
| 151 | const queryInterface = sequelize.getQueryInterface(); |
nothing calls this directly
no test coverage detected