UNPKG

@tapjs/run

Version:

Command-line interface for the node-tap runner

12 lines 495 B
import { resolve, sep } from 'path'; import { values } from './main-config.js'; let serial = undefined; export const testIsSerial = (file) => { if (!serial) { serial = (values.serial || []).map(s => resolve(s).toLowerCase() + sep); } // tack the sep onto the end so that if the config specifies an // individual file, rather than a dir, it still matches. return serial.some(s => (file.toLowerCase() + sep).startsWith(s)); }; //# sourceMappingURL=test-is-serial.js.map