MCPcopy Create free account
hub / github.com/avajs/ava / getFilePathPrefix

Function getFilePathPrefix

lib/api.js:28–35  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

26}
27
28function getFilePathPrefix(files) {
29 if (files.length === 1) { // eslint-disable-line unicorn/prefer-ternary
30 // Get the correct prefix up to the basename.
31 return commonPathPrefix([files[0], path.dirname(files[0])]);
32 }
33
34 return commonPathPrefix(files);
35}
36
37class TimeoutTrigger {
38 constructor(fn, waitMs = 0) {

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected