Skip to content

Commit 2208e0e

Browse files
Add global.IS_REACT_ACT_ENVIRONMENT for act
1 parent 2b68523 commit 2208e0e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

__tests__/setupTest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ if (!global.browser) global.browser = {tabs: {}};
22
if (!browser) var browser = {};
33
if (!global.browser.i18n) global.browser = {tabs: {}, i18n: {}};
44
if (!global.browser.i18n.getUILanguage) global.browser = {tabs: {}, i18n: {getUILanguage: () => "en"}};
5+
if (!global.IS_REACT_ACT_ENVIRONMENT) global.IS_REACT_ACT_ENVIRONMENT = true;
56

67
test("Browser is defined correctly for web extension testing", () => {
78
expect(browser).toBeDefined();

0 commit comments

Comments
 (0)