import TestRunner , { OnTestFailure , OnTestStart , OnTestSuccess , Test , TestRunnerContext , TestRunnerOptions , TestWatcher , } from "jest-runner" ; import { Config } from "@jest/types" ; import { init , up , down } from './stages' ; export default class DockerComposeJestRunner extends TestRunner { constructor ( globalConfig , context ? ) { super ( globalConfig , context ) ; } async runTests ( tests , watcher , onStart , onResult , onFailure , options ) { await init ( ) ; await up ( ) ; super . runTests ( tests , watcher , onStart , onResult , onFailure , options ) ; await down ( ) ; } }