MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / writeFiles

Function writeFiles

tests/unit/models/asset-size-printer-test.js:13–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 let storedTmpDir, assetDir, assetChildDir;
12
13 function writeFiles() {
14 fs.writeFileSync(path.join(assetDir, 'some-project.scss'), 'body { margin: 0 20px; }', { encoding: 'utf8' });
15 fs.writeFileSync(path.join(assetDir, 'some-project.css4'), 'body { margin: 0 20px; }', { encoding: 'utf8' });
16 fs.writeFileSync(path.join(assetDir, 'some-project.css'), 'body { margin: 0 20px; }', { encoding: 'utf8' });
17 fs.writeFileSync(path.join(assetDir, 'some-project.js'), 'module.exports = function () {};', { encoding: 'utf8' });
18 fs.writeFileSync(path.join(assetDir, 'some-project.json'), 'module.exports = function () {};', {
19 encoding: 'utf8',
20 });
21 fs.writeFileSync(path.join(assetDir, 'test-loader.js'), 'module.exports = function () {};', { encoding: 'utf8' });
22 fs.writeFileSync(path.join(assetDir, 'test-support.js'), 'module.exports = function () {};', { encoding: 'utf8' });
23 fs.writeFileSync(path.join(assetDir, 'testem.js'), 'module.exports = function () {};', { encoding: 'utf8' });
24 fs.writeFileSync(path.join(assetDir, 'test.js'), 'module.exports = function () {};', { encoding: 'utf8' });
25 fs.writeFileSync(path.join(assetDir, 'empty.js'), '', { encoding: 'utf8' });
26 fs.writeFileSync(path.join(assetChildDir, 'nested-asset.css'), 'body { margin: 0 20px; }', { encoding: 'utf8' });
27 fs.writeFileSync(path.join(assetChildDir, 'nested-asset.js'), 'module.exports = function () {};', {
28 encoding: 'utf8',
29 });
30 }
31
32 beforeEach(async function () {
33 const { path: tempPath } = await tmp.dir();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…