MCPcopy Create free account
hub / github.com/code-pushup/cli / wal

Function wal

packages/utils/src/lib/wal.unit.test.ts:18–21  ·  view source on GitHub ↗
(
  file: string,
  codec: Codec<T> = stringCodec<T>(),
)

Source from the content-addressed store, hash-verified

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

Callers 1

wal.unit.test.tsFile · 0.85

Calls 1

stringCodecFunction · 0.85

Tested by

no test coverage detected