@@ -143,7 +143,7 @@ Object {
143
143
" filename" : "/Users /onurtemizkan /Projects /sentry -javascript /packages /node -integration -tests /utils /index .ts ",
144
144
" function" : "Object .<anonymous >",
145
145
" in_app" : true ,
146
- " lineno" : 76 ,
146
+ " lineno" : 79 ,
147
147
" module" : "index .ts ",
148
148
" post_context" : Array [
149
149
"",
@@ -155,9 +155,9 @@ Object {
155
155
" });" ,
156
156
],
157
157
" pre_context" : Array [
158
- " const url = \` http://localhost:\$ {port}/test\` ;" ,
159
158
" " ,
160
159
" await new Promise(resolve => {" ,
160
+ " // eslint-disable-next-line @typescript-eslint/no-var-requires" ,
161
161
" const app = require(\`\$ {testDir}/server\` ).default as Express;" ,
162
162
" " ,
163
163
" app.get('/test', async () => {" ,
@@ -170,52 +170,52 @@ Object {
170
170
" filename" : " /Users/onurtemizkan/Projects/sentry-javascript/node_modules/jest-runtime/build/index.js" ,
171
171
" function" : " Runtime.requireModuleOrMock" ,
172
172
" in_app" : false ,
173
- " lineno" : 1210 ,
173
+ " lineno" : 598 ,
174
174
" module" : " jest-runtime.build:index" ,
175
175
" post_context" : Array [
176
176
" }" ,
177
177
" } catch (e) {" ,
178
- " const moduleNotFound = " ,
179
- " _jestResolve().default.tryCastModuleNotFoundError(e); " ,
180
- " " ,
181
- " if (moduleNotFound) { " ,
182
- " if ( " ,
178
+ " if (e.code === 'MODULE_NOT_FOUND') { " ,
179
+ " const appendedMessage = (0, _helpers.findSiblingsWithFileExtension)( " ,
180
+ " this._config.moduleFileExtensions, " ,
181
+ " from, " ,
182
+ " moduleName " ,
183
183
],
184
184
" pre_context" : Array [
185
- " if ( " ,
186
- " this._shouldMock(from, moduleName, this._explicitShouldMock, { " ,
187
- " conditions: this.cjsConditions " ,
188
- " }) " ,
189
- " ) {" ,
185
+ " } " ,
186
+ " " ,
187
+ " requireModuleOrMock(from, moduleName) { " ,
188
+ " try { " ,
189
+ " if (this._shouldMock(from, moduleName) ) {" ,
190
190
" return this.requireMock(from, moduleName);" ,
191
191
" } else {" ,
192
192
],
193
193
},
194
194
Object {
195
- " colno" : 12 ,
196
- " context_line" : " this._loadModule(" ,
195
+ " colno" : 10 ,
196
+ " context_line" : " this._loadModule(" ,
197
197
" filename" : " /Users/onurtemizkan/Projects/sentry-javascript/node_modules/jest-runtime/build/index.js" ,
198
198
" function" : " Runtime.requireModule" ,
199
199
" in_app" : false ,
200
- " lineno" : 1009 ,
200
+ " lineno" : 433 ,
201
201
" module" : " jest-runtime.build:index" ,
202
202
" post_context" : Array [
203
- " localModule," ,
204
- " from," ,
205
- " moduleName," ,
206
- " modulePath," ,
207
- " options," ,
208
- " moduleRegistry" ,
209
- " );" ,
203
+ " localModule," ,
204
+ " from," ,
205
+ " moduleName," ,
206
+ " modulePath," ,
207
+ " options," ,
208
+ " moduleRegistry" ,
209
+ " );" ,
210
210
],
211
211
" pre_context" : Array [
212
+ " exports: {}," ,
213
+ " filename: modulePath," ,
212
214
" id: modulePath," ,
213
- " loaded: false," ,
214
- " path: path().dirname(modulePath)" ,
215
+ " loaded: false" ,
215
216
" };" ,
216
217
" moduleRegistry.set(modulePath, localModule);" ,
217
218
" " ,
218
- " try {" ,
219
219
],
220
220
},
221
221
Object {
@@ -224,20 +224,20 @@ Object {
224
224
" filename" : " /Users/onurtemizkan/Projects/sentry-javascript/node_modules/jest-runtime/build/index.js" ,
225
225
" function" : " Runtime._loadModule" ,
226
226
" in_app" : false ,
227
- " lineno" : 1185 ,
227
+ " lineno" : 577 ,
228
228
" module" : " jest-runtime.build:index" ,
229
229
" post_context" : Array [
230
230
" }" ,
231
231
" " ,
232
232
" localModule.loaded = true;" ,
233
233
" }" ,
234
234
" " ,
235
- " _getFullTransformationOptions(options = defaultTransformOptions ) {" ,
236
- " return {... options, ...this._coverageOptions}; " ,
235
+ " _getFullTransformationOptions(options) {" ,
236
+ " return _objectSpread({}, options, { " ,
237
237
],
238
238
" pre_context" : Array [
239
- " this._environment.global.JSON.parse(transformedFile );" ,
240
- " } else if (path() .extname(modulePath) === '.node') {" ,
239
+ " );" ,
240
+ " } else if (_path().default .extname(modulePath) === '.node') {" ,
241
241
" localModule.exports = require(modulePath);" ,
242
242
" } else {" ,
243
243
" // Only include the fromPath if a moduleName is given. Else treat as root." ,
@@ -246,30 +246,30 @@ Object {
246
246
],
247
247
},
248
248
Object {
249
- " colno" : 24 ,
250
- " context_line" : " compiledFunction .call(" ,
249
+ " colno" : 68 ,
250
+ " context_line" : " runScript[_transform().ScriptTransformer.EVAL_RESULT_VARIABLE] .call(" ,
251
251
" filename" : " /Users/onurtemizkan/Projects/sentry-javascript/node_modules/jest-runtime/build/index.js" ,
252
252
" function" : " Runtime._execModule" ,
253
253
" in_app" : false ,
254
- " lineno" : 1646 ,
254
+ " lineno" : 867 ,
255
255
" module" : " jest-runtime.build:index" ,
256
256
" post_context" : Array [
257
- " module .exports," ,
258
- " module , // module object" ,
259
- " module .exports, // module exports" ,
260
- " module .require, // require implementation" ,
261
- " module.path , // __dirname" ,
262
- " module. filename, // __filename" ,
263
- " // @ts-expect-error " ,
257
+ " localModule .exports," ,
258
+ " localModule , // module object" ,
259
+ " localModule .exports, // module exports" ,
260
+ " localModule .require, // require implementation" ,
261
+ " dirname , // __dirname" ,
262
+ " filename, // __filename" ,
263
+ " this._environment.global, // global object " ,
264
264
],
265
265
" pre_context" : Array [
266
+ " 'You are trying to \` import\` a file after the Jest environment has been torn down.'" ,
267
+ " );" ,
266
268
" " ,
267
- " Object.defineProperty(module, 'main', {" ,
268
- " enumerable: true," ,
269
- " value: this._mainModule" ,
270
- " });" ,
269
+ " process.exitCode = 1;" ,
270
+ " return;" ,
271
+ " } //Wrapper" ,
271
272
" " ,
272
- " try {" ,
273
273
],
274
274
},
275
275
Object {
0 commit comments