File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
dev-packages/e2e-tests/test-applications/node-profiling Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
// breaks our runtime detection and can break instrumentation
3
3
// https://github.com/getsentry/sentry-javascript/issues/14525#issuecomment-2511208064
4
4
5
- function assertUnpatechedRequire ( cycle ) {
6
- if ( globalThis . require !== undefined ) {
5
+ function assertUnpatechedRequire ( ) {
6
+ if ( typeof globalThis . require !== ' undefined' ) {
7
7
// Test that globalThis.require is not defined by any side effects of the profiling
8
8
// https://github.com/getsentry/sentry-javascript/issues/13662
9
9
throw new Error (
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"typecheck" : " tsc --noEmit" ,
7
7
"build" : " node build.mjs && node build.shimmed.mjs" ,
8
- "test" : " node dist/index.js && node --experimental-require-module dist/index.js && node dist/index.shimmed.mjs && node index. mjs" ,
8
+ "test" : " node dist/index.js && node --experimental-require-module dist/index.js && node dist/index.shimmed.mjs && pnpm run test: mjs" ,
9
9
"clean" : " npx rimraf node_modules dist" ,
10
10
"test:electron" : " $(pnpm bin)/electron-rebuild && playwright test" ,
11
11
"test:build" : " pnpm run typecheck && pnpm run build" ,
12
- "test:assert" : " pnpm run test && pnpm run test:electron"
12
+ "test:assert" : " pnpm run test && pnpm run test:electron" ,
13
+ "test:mjs" : " node --version && npm pkg set type=module && node index.mjs"
13
14
},
14
15
"dependencies" : {
15
16
"@electron/rebuild" : " ^3.7.0" ,
19
20
"@sentry/profiling-node" : " latest || *" ,
20
21
"electron" : " ^33.2.0"
21
22
},
22
- "devDependencies" : {},
23
23
"volta" : {
24
24
"extends" : " ../../package.json"
25
25
},
You can’t perform that action at this time.
0 commit comments