How to use the fixturify.readSync function in fixturify

To help you get started, we’ve selected a few fixturify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ember-engines / ember-engines / node-tests / helpers / build.js View on Github external
constructor(app) {
    this.app = app;
    this._buildPath = path.join(app.path, 'dist');
    this._build = fixturify.readSync(this._buildPath);
  }
github rollup / rollup / test / utils.js View on Github external
function assertDirectoriesAreEqual(actualDir, expectedDir) {
	const actualFiles = fixturify.readSync(actualDir);

	let expectedFiles;
	try {
		expectedFiles = fixturify.readSync(expectedDir);
	} catch (err) {
		expectedFiles = [];
	}
	assertFilesAreEqual(actualFiles, expectedFiles);
}
github rollup / rollup / test / utils.js View on Github external
function assertDirectoriesAreEqual(actualDir, expectedDir) {
	const actualFiles = fixturify.readSync(actualDir);

	let expectedFiles;
	try {
		expectedFiles = fixturify.readSync(expectedDir);
	} catch (err) {
		expectedFiles = [];
	}
	assertFilesAreEqual(actualFiles, expectedFiles);
}

fixturify

Convert objects into directory structures and back again

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis

Popular fixturify functions