@@ -19,7 +19,6 @@ beforeAll(() => {
1919 // and passthrough everything else
2020 server = setupServer (
2121 http . post ( 'https://api.netlify.com/api/v1/purge' , ( ) => {
22- console . log ( 'intercepted purge api call' )
2322 return HttpResponse . json ( { } )
2423 } ) ,
2524 http . all ( / .* / , ( ) => passthrough ( ) ) ,
@@ -91,7 +90,6 @@ test<FixtureTestContext>('Should revalidate path with On-demand Revalidation', a
9190 expect ( staticPageRevalidated . headers ?. [ 'cache-status' ] ) . toMatch ( / " N e x t .j s " ; h i t / )
9291 const dateCacheRevalidated = load ( staticPageRevalidated . body ) ( '[data-testid="date-now"]' ) . text ( )
9392
94- console . log ( { dateCacheInitial, dateCacheRevalidated } )
9593 expect ( dateCacheInitial ) . not . toBe ( dateCacheRevalidated )
9694} )
9795
@@ -154,7 +152,7 @@ test<FixtureTestContext>('Should serve correct locale-aware custom 404 pages', a
154152 ) . toBe ( 'fr' )
155153} )
156154
157- describe . only ( '404 caching' , ( ) => {
155+ describe ( '404 caching' , ( ) => {
158156 beforeAll ( ( ) => {
159157 process . env . ENABLE_404_CACHING = 'true'
160158 } )
@@ -198,8 +196,6 @@ describe.only('404 caching', () => {
198196
199197 describe ( '404 with getStaticProps without revalidate' , ( ) => {
200198 test < FixtureTestContext > ( 'not matching dynamic paths should be cached permanently' , async ( ctx ) => {
201- console . log ( '[test] not matching dynamic paths' )
202-
203199 await createFixture ( 'page-router-base-path-i18n' , ctx )
204200 await runPlugin ( ctx )
205201
@@ -215,8 +211,6 @@ describe.only('404 caching', () => {
215211 ) . toBe ( 's-maxage=31536000, stale-while-revalidate=31536000, durable' )
216212 } )
217213 test < FixtureTestContext > ( 'matching dynamic path with revalidate should be cached permanently' , async ( ctx ) => {
218- console . log ( '[test] matching dynamic path with revalidate' )
219-
220214 await createFixture ( 'page-router-base-path-i18n' , ctx )
221215 await runPlugin ( ctx )
222216
@@ -258,8 +252,6 @@ describe.only('404 caching', () => {
258252 } )
259253
260254 test < FixtureTestContext > ( 'matching dynamic path with revalidate should be cached for 404 page revalidate' , async ( ctx ) => {
261- console . log ( '[test] matching dynamic path with revalidate' )
262-
263255 await createFixture ( 'page-router-404-get-static-props-with-revalidate' , ctx )
264256 await runPlugin ( ctx )
265257
0 commit comments