Skip to content

Commit

Permalink
feat: allow init call from sandworm-mocha module
Browse files Browse the repository at this point in the history
  • Loading branch information
gabidobo committed Sep 23, 2022
1 parent 584eb69 commit a63bcd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const init = ({
const {name: callerModule} = getCurrentModuleInfo({
allowURLs: false,
});
if (callerModule !== 'root') {
if (!['root', 'mocha>sandworm-mocha'].includes(callerModule)) {
logger.warn(`only root may call init (called from ${callerModule})`);
return Promise.resolve();
}
Expand Down

0 comments on commit a63bcd1

Please sign in to comment.