Any plan for global hooks like mocha ? #4166
Unanswered
ibnumusyaffa
asked this question in
Japa
Replies: 1 comment
-
Hey @ibnumusyaffa! 👋🏻 This is already available and documented. export const runnerHooks: Required<Pick<Config, 'setup' | 'teardown'>> = {
setup: [
() => TestUtils.ace().loadCommands(),
() => TestUtils.db().migrate()
],
teardown: [],
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is there any plan for adding global hooks like mocha has? lets say i want to run database migration once before all test run
Beta Was this translation helpful? Give feedback.
All reactions