( file: string, codec: Codec<T> = stringCodec<T>(), )
| 16 | const write = (p: string, c: string) => vol.writeFileSync(p, c); |
| 17 | |
| 18 | const wal = <T extends object | string>( |
| 19 | file: string, |
| 20 | codec: Codec<T> = stringCodec<T>(), |
| 21 | ) => new WriteAheadLogFile({ file, codec }); |
| 22 | |
| 23 | describe('createTolerantCodec', () => { |
| 24 | it('should make decode tolerant but encode passes through errors', () => { |
no test coverage detected