@@ -99,6 +99,7 @@ describe("getExperiments", () => {
9999 } ) ;
100100
101101 it ( "calls Cirrus V2 when feature flag is enabled with preview param" , async ( ) => {
102+ process . env . NEXT_RUNTIME = "test" ;
102103 process . env . NIMBUS_SIDECAR_URL = "https://cirrus.example" ;
103104 getEnabledFeatureFlagsMock . mockReturnValue ( [
104105 "CirrusV2" ,
@@ -150,6 +151,8 @@ describe("getExperiments", () => {
150151 previewMode : true ,
151152 } ) ,
152153 ) ;
154+
155+ delete process . env . NEXT_RUNTIME ;
153156 } ) ;
154157
155158 it ( "calls Cirrus V1 when featurn flag is disabled" , async ( ) => {
@@ -188,7 +191,8 @@ describe("getExperiments", () => {
188191 ) ;
189192 } ) ;
190193
191- it ( "fallsback to defaultExperimentData when not experiment data is returned by Cirrus" , async ( ) => {
194+ it ( "fallsback to defaultExperimentData when no experiment data is returned by Cirrus" , async ( ) => {
195+ process . env . NEXT_RUNTIME = "test" ;
192196 process . env . NIMBUS_SIDECAR_URL = "https://cirrus.example" ;
193197 getEnabledFeatureFlagsMock . mockReturnValue ( [
194198 "CirrusV2" ,
@@ -235,6 +239,7 @@ describe("getExperiments", () => {
235239 previewMode : true ,
236240 } ) ,
237241 ) ;
242+ delete process . env . NEXT_RUNTIME ;
238243 } ) ;
239244
240245 it ( "logs error, captures exception, and returns defaultExperimentData on error response" , async ( ) => {
0 commit comments