test: remove roles and permission with global before all hook
This commit is contained in:
@@ -5,6 +5,9 @@ import logger from '../../src/helpers/logger';
|
||||
global.beforeAll(async () => {
|
||||
global.knex = null;
|
||||
logger.silent = true;
|
||||
|
||||
// Remove default roles and permissions before running the test suite
|
||||
await knex.raw('TRUNCATE TABLE roles, permissions CASCADE');
|
||||
});
|
||||
|
||||
global.beforeEach(async () => {
|
||||
|
Reference in New Issue
Block a user