Easily create and maintain test fixtures in the file system. Version 1.1.0 is the latest stable release. It allows placing fixtures in any parent directory, finding them by name via upward search, copying into temporary directories, and auto-cleanup on process exit. Differentiators: supports multiple test frameworks (Jest, AVA, Mocha), fixture sharing between tests, and customizable glob patterns to locate fixture directories.
npm install fixturezNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create fixture functions using require, find, copy, temp, and cleanup methods.
Ensure a 'fixtures' or '__fixtures__' directory exists in a parent directory, or set 'root' option.
Use the current options as documented; future API might change.
Call f.find() if you only need the original path without copying.
Use f.find('file.txt') with the full basename including extension.Use default import: const fixtures = require('fixturez'); or import fixtures from 'fixturez';No dependency data recorded yet.