Skip to content

Commit

Permalink
update check function
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Oct 7, 2022
1 parent 3a52491 commit 719a112
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions is-test-runner.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
'use strict';

Object.defineProperty(exports, '__esModule', {
value: true,
});
exports.isTestRunner = isTestRunner;

/**
* Returns whether the story is rendering inside of the Storybook test runner.
*/
function isTestRunner() {
export function isTestRunner() {
const isTestRunnerInNode = process?.env?.STORYBOOK_TEST_RUNNER === 'true';
const isTestRunnerInBrowser = !!(
typeof window !== 'undefined' &&
Expand Down

0 comments on commit 719a112

Please sign in to comment.