MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / expectFileToMatchSnapshot

Function expectFileToMatchSnapshot

packages/cli/test/snapshots.js:17–21  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

15);
16
17function expectFileToMatchSnapshot(filePath) {
18 assert.file(filePath);
19 const content = fs.readFileSync(filePath, {encoding: 'utf-8'});
20 expectToMatchSnapshot(content);
21}
22
23/**
24 * Assert a list of files to match snapshots

Calls

no outgoing calls

Tested by

no test coverage detected