@digest/jest 4.14.15 → 4.14.16

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.
Files changed (2) hide show
  1. package/dist/jest.config.js +56 -46
  2. package/package.json +5 -5
@@ -67,11 +67,14 @@ module.exports = {
67
67
  'ts',
68
68
  'tsx'
69
69
  ],
70
- moduleNameMapper: Object.assign({ '\\.(css|scss|sass|less)$': 'identity-obj-proxy' }, reactNativeWeb ?
71
- {
72
- '^react-native$': 'react-native-web'
73
- } :
74
- {}),
70
+ moduleNameMapper: {
71
+ '\\.(css|scss|sass|less)$': 'identity-obj-proxy',
72
+ ...reactNativeWeb ?
73
+ {
74
+ '^react-native$': 'react-native-web'
75
+ } :
76
+ {}
77
+ },
75
78
  reporters: [
76
79
  'default'
77
80
  ].concat(reports && junit ?
@@ -118,45 +121,52 @@ module.exports = {
118
121
  '.d.ts$'
119
122
  ],
120
123
  testRegex: '(__tests__[\\\/\\\\].*|\\.(test|spec))\\.(j|t)sx?$',
121
- transform: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)(\\?v=[0-9]\\.[0-9]\\.[0-9])?$': 'jest-transform-stub' }, babel ?
122
- {
123
- '^.+\\.js$': [
124
- 'babel-jest',
125
- {
126
- configFile: babelPrepPath
127
- }
128
- ]
129
- } :
130
- {}), babel && react ?
131
- {
132
- '^.+\\.jsx$': [
133
- 'babel-jest',
134
- {
135
- configFile: babelPrepPath
136
- }
137
- ]
138
- } :
139
- {}), babel && typescript ?
140
- {
141
- '^.+\\.ts$': [
142
- 'babel-jest',
143
- {
144
- configFile: babelPrepPath
145
- }
146
- ]
147
- } :
148
- {}), babel && react && typescript ?
149
- {
150
- '^.+\\.tsx$': [
151
- 'babel-jest',
152
- {
153
- configFile: babelPrepPath
154
- }
155
- ]
156
- } :
157
- {}), babel && graphql ?
158
- {
159
- '^.+\\.(gql|graphql)$': 'jest-transform-graphql'
160
- } :
161
- {})
124
+ transform: {
125
+ '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)(\\?v=[0-9]\\.[0-9]\\.[0-9])?$': 'jest-transform-stub',
126
+ ...babel ?
127
+ {
128
+ '^.+\\.js$': [
129
+ 'babel-jest',
130
+ {
131
+ configFile: babelPrepPath
132
+ }
133
+ ]
134
+ } :
135
+ {},
136
+ ...babel && react ?
137
+ {
138
+ '^.+\\.jsx$': [
139
+ 'babel-jest',
140
+ {
141
+ configFile: babelPrepPath
142
+ }
143
+ ]
144
+ } :
145
+ {},
146
+ ...babel && typescript ?
147
+ {
148
+ '^.+\\.ts$': [
149
+ 'babel-jest',
150
+ {
151
+ configFile: babelPrepPath
152
+ }
153
+ ]
154
+ } :
155
+ {},
156
+ ...babel && react && typescript ?
157
+ {
158
+ '^.+\\.tsx$': [
159
+ 'babel-jest',
160
+ {
161
+ configFile: babelPrepPath
162
+ }
163
+ ]
164
+ } :
165
+ {},
166
+ ...babel && graphql ?
167
+ {
168
+ '^.+\\.(gql|graphql)$': 'jest-transform-graphql'
169
+ } :
170
+ {}
171
+ }
162
172
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@digest/jest",
3
3
  "title": "Jest Digest",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "4.14.15",
5
+ "version": "4.14.16",
6
6
  "description": "Digested Jest configurations",
7
7
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
8
  "contributors": [
@@ -37,9 +37,9 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@digest/scripts": "^4.0.0",
40
- "@jest/globals": "^30.2.0",
41
- "jest": "^30.2.0",
42
- "jest-environment-jsdom": "^30.2.0",
40
+ "@jest/globals": "^30.3.0",
41
+ "jest": "^30.3.0",
42
+ "jest-environment-jsdom": "^30.3.0",
43
43
  "jest-transform-stub": "^2.0.0"
44
44
  },
45
45
  "keywords": [
@@ -49,5 +49,5 @@
49
49
  "coverage",
50
50
  "clover"
51
51
  ],
52
- "gitHead": "1a53c4bf3a1a7a600c75eb88c72afe3eb150ece2"
52
+ "gitHead": "aee0bf3ce973c772a7a29ed065a3208e80cadca1"
53
53
  }