@@ -28,7 +28,7 @@ test('should indicate agent is running in a browser scope', async () => {
28
28
}
29
29
}
30
30
31
- const runtime = await import ( './runtime' )
31
+ const runtime = await import ( '../../../../src/common/constants /runtime' )
32
32
33
33
delete global . window
34
34
@@ -43,7 +43,7 @@ test('should indicate agent is running in a worker scope using global self varia
43
43
const mockedGlobalSelf = global . self = new global . WorkerGlobalScope ( )
44
44
mockedGlobalSelf . navigator = new global . WorkerNavigator ( )
45
45
46
- const runtime = await import ( './runtime' )
46
+ const runtime = await import ( '../../../../src/common/constants /runtime' )
47
47
48
48
delete global . WorkerGlobalScope
49
49
delete global . WorkerNavigator
@@ -62,7 +62,7 @@ test('should indicate agent is running in a worker scope using global self varia
62
62
Object . defineProperties ( global . globalThis , Object . getOwnPropertyDescriptors ( cachedGlobalThis ) )
63
63
global . globalThis . navigator = new WorkerNavigator ( )
64
64
65
- const runtime = await import ( './runtime' )
65
+ const runtime = await import ( '../../../../src/common/constants /runtime' )
66
66
67
67
delete global . WorkerGlobalScope
68
68
delete global . WorkerNavigator
@@ -88,7 +88,7 @@ test('should store the initial page location', async () => {
88
88
}
89
89
}
90
90
91
- const runtime = await import ( './runtime' )
91
+ const runtime = await import ( '../../../../src/common/constants /runtime' )
92
92
mockedWindow . location . href = faker . internet . url ( )
93
93
94
94
delete global . window
@@ -108,7 +108,7 @@ test.each([
108
108
global . navigator . userAgent = userAgent
109
109
global . window = { navigator : global . navigator , document : true }
110
110
111
- const runtime = await import ( './runtime' )
111
+ const runtime = await import ( '../../../../src/common/constants /runtime' )
112
112
113
113
expect ( runtime . isiOS ) . toEqual ( expected )
114
114
delete global . window
@@ -131,7 +131,7 @@ test.each([
131
131
global . navigator . userAgent = userAgent
132
132
global . window = { navigator : global . navigator , document : true }
133
133
134
- const runtime = await import ( './runtime' )
134
+ const runtime = await import ( '../../../../src/common/constants /runtime' )
135
135
136
136
delete global . SharedWorker
137
137
@@ -150,7 +150,7 @@ test.each([
150
150
global . navigator . userAgent = userAgent
151
151
global . window = { navigator : global . navigator , document : true }
152
152
153
- const runtime = await import ( './runtime' )
153
+ const runtime = await import ( '../../../../src/common/constants /runtime' )
154
154
155
155
expect ( runtime . ffVersion ) . toEqual ( expected )
156
156
delete global . window
@@ -160,7 +160,7 @@ test('should set supportsSendBeacon to false', async () => {
160
160
// Ensure we don't have a sendBeacon function
161
161
delete global . navigator . sendBeacon
162
162
163
- const runtime = await import ( './runtime' )
163
+ const runtime = await import ( '../../../../src/common/constants /runtime' )
164
164
165
165
expect ( runtime . supportsSendBeacon ) . toEqual ( false )
166
166
} )
@@ -169,7 +169,7 @@ test('should set supportsSendBeacon to true', async () => {
169
169
global . navigator . sendBeacon = jest . fn ( )
170
170
global . window = { navigator : global . navigator , document : true }
171
171
172
- const runtime = await import ( './runtime' )
172
+ const runtime = await import ( '../../../../src/common/constants /runtime' )
173
173
174
174
expect ( runtime . supportsSendBeacon ) . toEqual ( true )
175
175
delete global . window
0 commit comments