Skip to content

Commit

Permalink
Update @views 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 b832a9e commit f532363
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 58 deletions.
4 changes: 2 additions & 2 deletions src/config/pragmas/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ module.exports = function configureViews ({ arc, pragmas, inventory, errors }) {
}
else if (foundPluginSrc) {
if (!required) {
if (!is.exists(views.src)) views.src = src
if (!is.exists(views.src)) return null
if (!is.exists(views.src) && !is.exists(join(cwd, views.src))) views.src = src
if (!is.exists(views.src) && !is.exists(join(cwd, views.src))) return null
}
validate.shared(views.src, cwd, errors, required)
}
Expand Down
Loading

0 comments on commit f532363

Please sign in to comment.