@@ -48,6 +48,8 @@ describe("server-side rendering (pure + hybrid)", () => {
4848 }
4949 ) ;
5050
51+ fetchMock . post ( `https://happykit.dev/api/flags-perf` , { } ) ;
52+
5153 const context = {
5254 req : {
5355 headers : { cookie : "hkvk=V1StGXR8_Z5jdHi6B-myT" } ,
@@ -114,6 +116,8 @@ describe("server-side rendering (pure + hybrid)", () => {
114116 }
115117 ) ;
116118
119+ fetchMock . post ( `https://happykit.dev/api/flags-perf` , { } ) ;
120+
117121 const context = {
118122 req : {
119123 headers : { cookie : "hkvk=V1StGXR8_Z5jdHi6B-myT" } ,
@@ -187,6 +191,8 @@ describe("server-side rendering (pure + hybrid)", () => {
187191 }
188192 ) ;
189193
194+ fetchMock . post ( `https://happykit.dev/api/flags-perf` , { } ) ;
195+
190196 const context = {
191197 req : {
192198 headers : { cookie : "foo=bar" } ,
@@ -308,6 +314,8 @@ describe("static site generation (pure + hybrid)", () => {
308314 }
309315 ) ;
310316
317+ fetchMock . post ( `https://happykit.dev/api/flags-perf` , { } ) ;
318+
311319 expect ( await getFlags ( { context : { } as GetStaticPropsContext } ) ) . toEqual ( {
312320 flags : { meal : "large" } ,
313321 data : {
@@ -354,6 +362,8 @@ describe("static site generation (pure + hybrid)", () => {
354362 }
355363 ) ;
356364
365+ fetchMock . post ( `https://happykit.dev/api/flags-perf` , { } ) ;
366+
357367 expect (
358368 await getFlags ( {
359369 context : { } as GetStaticPropsContext ,
@@ -406,6 +416,8 @@ describe("static site generation (pure + hybrid)", () => {
406416 }
407417 ) ;
408418
419+ fetchMock . post ( `https://happykit.dev/api/flags-perf` , { } ) ;
420+
409421 expect (
410422 await getFlags ( {
411423 context : { } as GetStaticPropsContext ,
0 commit comments