import { SourceReader , SourceWriter , FileRef } from "../../types" ; export class TestSourceIO implements SourceReader , SourceWriter { constructor ( public source ) { } write ( file , source ) { this . source = source ; return Promise . resolve ( ) ; } read ( file ) { return Promise . resolve ( this . source ) ; } } export class DummyFile implements FileRef { constructor ( public id ) { } get path ( ) { return "" ; } }