import { Extractor , ExtractorInput , Reporters } from '../src/api' ; class TestExtractor implements Extractor { static canParse ( source ) { return Promise . resolve ( source === 'foo' ) ; } static create ( someArgument ) { return new TestExtractor ( someArgument ) ; } static configure ( constructorArgs ) { constructorArgs . push ( 'bar' ) ; } static shouldRetryError ( error ) { return error . message === 'RetryMe!' ; } static mockExport = jest . fn ( ) ; constructor ( readonly someArgument ) { } async export ( input , projectRoot , reporters ) { TestExtractor . mockExport ( input , projectRoot , reporters , this . someArgument ) ; } } export = TestExtractor ;