Skip to content

Commit

Permalink
test: try to fix coverage for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Dec 20, 2024
1 parent 4542293 commit 700c185
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,9 @@ const checkPath = (path, originalPath, doThrow) => {
const isNotRelative = path => REGEX_TEST_INVALID_PATH.test(path)

checkPath.isNotRelative = isNotRelative

// On windows, the following function will be replaced
/* istanbul ignore next */
checkPath.convert = p => p


Expand Down Expand Up @@ -741,7 +744,7 @@ factory.isPathValid = isPathValid

// Windows
// --------------------------------------------------------------
/* istanbul ignore if */
/* istanbul ignore next */
if (
// Detect `process` so that it can run in browsers.
typeof process !== 'undefined'
Expand Down

0 comments on commit 700c185

Please sign in to comment.