MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / checkFile

Function checkFile

tests/helpers-internal/file-utils.js:9–18  ·  view source on GitHub ↗
(inputPath, outputPath)

Source from the content-addressed store, hash-verified

7const { file } = require('chai-files');
8
9function checkFile(inputPath, outputPath) {
10 if (process.env.WRITE_FIXTURES) {
11 let content = fs.readFileSync(inputPath, { encoding: 'utf-8' });
12
13 fs.mkdirSync(path.dirname(outputPath), { recursive: true });
14 fs.writeFileSync(outputPath, content, { encoding: 'utf-8' });
15 }
16
17 expect(file(inputPath)).to.equal(file(outputPath));
18}
19
20module.exports = {
21 checkFile,

Callers 2

new-test.jsFile · 0.85
addon-test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…