@@ -40,70 +40,6 @@ describe.each([[clientConfigLoaderThis], [instrumentationLoaderThis]])('valueInj
40
40
expect ( result ) . toMatch ( ';globalThis["foo"] = "bar";' ) ;
41
41
} ) ;
42
42
43
- it ( 'should work with instrumentation-client.js files' , ( ) => {
44
- const instrumentationLoaderThis = {
45
- ...loaderThis ,
46
- resourcePath : './instrumentation-client.js' ,
47
- } ;
48
-
49
- const userCode = `
50
- import * as Sentry from '@sentry/nextjs';
51
- Sentry.init();
52
- ` ;
53
-
54
- const result = valueInjectionLoader . call ( instrumentationLoaderThis , userCode ) ;
55
-
56
- expect ( result ) . toMatch ( ';globalThis["foo"] = "bar";' ) ;
57
- } ) ;
58
-
59
- it ( 'should work with instrumentation-client.ts files' , ( ) => {
60
- const instrumentationLoaderThis = {
61
- ...loaderThis ,
62
- resourcePath : './instrumentation-client.ts' ,
63
- } ;
64
-
65
- const userCode = `
66
- import * as Sentry from '@sentry/nextjs';
67
- Sentry.init();
68
- ` ;
69
-
70
- const result = valueInjectionLoader . call ( instrumentationLoaderThis , userCode ) ;
71
-
72
- expect ( result ) . toMatch ( ';globalThis["foo"] = "bar";' ) ;
73
- } ) ;
74
-
75
- it ( 'should work with src/instrumentation-client.js files' , ( ) => {
76
- const instrumentationLoaderThis = {
77
- ...loaderThis ,
78
- resourcePath : './src/instrumentation-client.js' ,
79
- } ;
80
-
81
- const userCode = `
82
- import * as Sentry from '@sentry/nextjs';
83
- Sentry.init();
84
- ` ;
85
-
86
- const result = valueInjectionLoader . call ( instrumentationLoaderThis , userCode ) ;
87
-
88
- expect ( result ) . toMatch ( ';globalThis["foo"] = "bar";' ) ;
89
- } ) ;
90
-
91
- it ( 'should work with src/instrumentation-client.ts files' , ( ) => {
92
- const instrumentationLoaderThis = {
93
- ...loaderThis ,
94
- resourcePath : './src/instrumentation-client.ts' ,
95
- } ;
96
-
97
- const userCode = `
98
- import * as Sentry from '@sentry/nextjs';
99
- Sentry.init();
100
- ` ;
101
-
102
- const result = valueInjectionLoader . call ( instrumentationLoaderThis , userCode ) ;
103
-
104
- expect ( result ) . toMatch ( ';globalThis["foo"] = "bar";' ) ;
105
- } ) ;
106
-
107
43
it ( 'should correctly insert values with directive' , ( ) => {
108
44
const userCode = `
109
45
"use client"
0 commit comments