Skip to content

Commit 2ddb4e7

Browse files
committed
Another try to fix Jest config for host packages
1 parent 694b3b6 commit 2ddb4e7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

config/jest/default.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ module.exports = {
1111
testPathIgnorePatterns: [
1212
'/node_modules/',
1313
],
14+
transformIgnorePatterns: [
15+
'/node_modules/(?!topcoder-react-utils)',
16+
],
1417
setupTestFrameworkScriptFile: '<rootDir>/config/jest/setup.js',
1518
};

config/jest/setup.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
/* NOTE: Don't rely on Babel in this module to avoid problems with usage in
2-
* a host package. */
3-
4-
require('raf/polyfill');
1+
import 'raf/polyfill';

jest-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
* Probably, the same can be achieved via Babel, with no need for
33
* such alias modules, but it should be tested. */
44

5-
import * as utils from 'utils/jest';
5+
import * as utils from './src/shared/utils/jest';
66

77
module.exports = utils;

0 commit comments

Comments
 (0)