Skip to content

Commit

Permalink
fix: allow init from sandworm-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
gabidobo committed Sep 29, 2022
1 parent 32e60ee commit 5df5065
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ const init = ({

if (
initCaller !== 'root' &&
(rootCallerModule !== 'mocha' || directCallerModule !== 'sandworm-mocha') &&
(rootCallerModule !== 'jest-runner' || directCallerModule !== 'sandworm-jest')
(rootCallerModule !== 'mocha' || directCallerModule !== 'sandworm-utils') &&
(rootCallerModule !== 'jest-runner' || directCallerModule !== 'sandworm-utils')
) {
logger.warn(`only root may call init (called from ${initCaller})`);
return Promise.resolve();
Expand Down

0 comments on commit 5df5065

Please sign in to comment.