Documentation
    Preparing search index...

    Hooks executed when running the test suite.

    const testRunnerHooks: TestRunnerHooks = {
    testsStarting: [
    () => import('./hooks/before_tests')
    ],
    testsFinished: [
    () => import('./hooks/after_tests')
    ]
    }
    type TestRunnerHooks = {
        testsStarting: LazyImport<(server: TestRunner) => AsyncOrSync<void>>[];
        testsFinished: LazyImport<(server: TestRunner) => AsyncOrSync<void>>[];
    }
    Index

    Properties

    testsStarting: LazyImport<(server: TestRunner) => AsyncOrSync<void>>[]

    The hook is executed before we begin executing the tests. Use this hook to set up test databases or perform pre-test setup.

    The TestRunner instance that will execute the tests

    testsFinished: LazyImport<(server: TestRunner) => AsyncOrSync<void>>[]

    The hook is executed after the tests have been executed. Use this hook to clean up resources or generate test reports.

    The TestRunner instance that executed the tests