/* eslint-disable @typescript-eslint/no-empty-function */ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /** * @see https://mochajs.org/#root-hook-plugins * beforeAll: * - In serial mode(Mocha’s default ), before all tests begin, once only * - In parallel mode, run before all tests begin, for each file * beforeEach: * - In both modes, run before each test */ export const mochaHooks = async () => { // avoid run multi times if (! process.env.mochaRootHookFlag) { process.env.mochaRootHookFlag = 'true' await Promise.resolve() } return { // beforeAll() { // void 0 // }, // afterAll() { // void 0 // }, } }