Skip to content

Commit 300f5c4

Browse files
authored
Merge pull request #134 from kentcdodds/pr/coverage
test: ignore line that is difficult to simulate
2 parents 0a463d1 + f5d4bde commit 300f5c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rules/no-root-files-node-modules-nameclash.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const customJoi = Joi.extend({
5454
// For an initial iteration this node_module resolving is quite simplistic;
5555
// it just takes the first node_module folder found looking upwards from the given root
5656
const nodeModuleFolder = findNodeModules({ cwd: path_, relative: false })[0]
57+
/* istanbul ignore if - it's hard to simulate this */
5758
if (!nodeModuleFolder) {
5859
return null
5960
}

0 commit comments

Comments
 (0)