File tree Expand file tree Collapse file tree 4 files changed +3742
-13
lines changed Expand file tree Collapse file tree 4 files changed +3742
-13
lines changed Original file line number Diff line number Diff line change 2323 uses : actions/checkout@v3
2424 with :
2525 ref : ${{ env.HEAD_COMMIT }}
26- - uses : actions/setup-node@v3
26+ - uses : actions/setup-node@v4
2727 with :
28- node-version : 16
28+ node-version : 22
2929 cache : ' npm'
3030 - name : Install dependencies
3131 run : npm install
Original file line number Diff line number Diff line change 11const Sentry = require ( "@sentry/node" ) ;
2- require ( "@sentry/tracing" ) ;
32const { ProfilingIntegration} = require ( "@sentry/profiling-node" ) ;
43
54let DID_INIT_SENTRY = false ;
@@ -9,7 +8,7 @@ function isNotTransaction(span) {
98}
109
1110function createEnvironment ( { baseEnvironment } = { } ) {
12- const BaseEnvironment = baseEnvironment || require ( "jest-environment-jsdom" ) ;
11+ const BaseEnvironment = baseEnvironment ?. TestEnvironment || require ( "jest-environment-jsdom" ) . TestEnvironment ;
1312
1413 return class SentryEnvironment extends BaseEnvironment {
1514 getVmContextSpanStack = [ ] ;
@@ -40,6 +39,10 @@ function createEnvironment({ baseEnvironment } = {}) {
4039 init . integrations = [ ] ;
4140 }
4241
42+ if ( Sentry . autoDiscoverNodePerformanceMonitoringIntegrations ) {
43+ integrations . push ( ...Sentry . autoDiscoverNodePerformanceMonitoringIntegrations ( ) )
44+ }
45+
4346 // Add profiling integration
4447 init . integrations . push ( new ProfilingIntegration ( ) ) ;
4548
You can’t perform that action at this time.
0 commit comments