import { Context } from './Context' ; import { NoOpTestObserver , TestObserver } from './TestObserver' ; import { Test } from './testTypes' ; export class NetworkRecordingTestObserver extends NoOpTestObserver { constructor ( protected ctx , public next ) { super ( next ) ; } async syncNetworkRecorder ( ) { await this . ctx . networkRecorder . sync ( ) ; } async before ( test ) { await this . ctx . attachTest ( test ) ; return this . next . before ( test ) ; } }