Skip to content

Commit

Permalink
Update @shared unit tests to use mock-tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblock committed Dec 5, 2023
1 parent f3e960a commit b832a9e
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 51 deletions.
4 changes: 2 additions & 2 deletions src/config/pragmas/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ module.exports = function configureShared ({ arc, pragmas, inventory, errors })
}
else if (foundPluginSrc) {
if (!required) {
if (!is.exists(shared.src)) shared.src = src
if (!is.exists(shared.src)) return null
if (!is.exists(shared.src) && !is.exists(join(cwd, shared.src))) shared.src = src
if (!is.exists(shared.src) && !is.exists(join(cwd, shared.src))) return null
}
validate.shared(shared.src, cwd, errors, required)
}
Expand Down
Loading

0 comments on commit b832a9e

Please sign in to comment.