MCPcopy
hub / github.com/jestjs/jest / readFile

Function readFile

e2e/__tests__/toMatchSnapshotWithStringSerializer.test.ts:19–20  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

17const TESTS_DIR = path.resolve(DIR, '__tests__');
18
19const readFile = (filename: string) =>
20 fs.readFileSync(path.join(TESTS_DIR, filename), 'utf8');
21
22beforeEach(() => cleanup(TESTS_DIR));
23afterAll(() => cleanup(TESTS_DIR));

Calls

no outgoing calls

Tested by

no test coverage detected