Skip to content

Commit ca82d3f

Browse files
authored
🐞 Fix Nightly build problems due to test suite errors (#71)
Based on [msw](https://mswjs.io/docs/migrations/1.x-to-2.x/#cannot-find-module-mswnode-jsdom) setup guide, we need to add the test environment options to the Jest config files. This PR hopefully fixes #70 Co-authored-by: @laicuRoot
1 parent 77a9408 commit ca82d3f

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

templates/boilerplate/jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ module.exports = {
1313
'@testing-library/jest-native/extend-expect',
1414
'./jest.setup.js',
1515
],
16+
testEnvironmentOptions: {
17+
customExportConditions: [''],
18+
},
1619
};

templates/testingLibrary/jest.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ module.exports = {
1313
'@testing-library/jest-native/extend-expect',
1414
'./jest.setup.js',
1515
],
16+
testEnvironmentOptions: {
17+
customExportConditions: [''],
18+
},
1619
};

0 commit comments

Comments
 (0)