@dr.pogodin/react-utils 1.39.3 → 1.39.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,7 @@ module.exports = {
16
16
  '\\.(scss|css)$': 'identity-obj-proxy',
17
17
  },
18
18
  modulePathIgnorePatterns: ['<rootDir>/build/'],
19
+ resolver: `${__dirname}/resolver.js`,
19
20
  rootDir: '../..',
20
21
  testMatch: ['**/__tests__/**/*.(j|t)s?(x)'],
21
22
  testPathIgnorePatterns: [
@@ -0,0 +1,10 @@
1
+ module.exports = (path, options) => {
2
+ // Appending "development" option we ensure that Jest tests use development
3
+ // version of the library's build for browsers, which for example contains
4
+ // "data-testid" attributes (they are optimized-out of production builds).
5
+ if (options.conditions && !options.conditions.includes('development')) {
6
+ options.conditions.push('development');
7
+ }
8
+
9
+ return options.defaultResolver(path, { ...options });
10
+ };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.39.3",
2
+ "version": "1.39.4",
3
3
  "bin": {
4
4
  "react-utils-build": "bin/build.js",
5
5
  "react-utils-setup": "bin/setup.js"