@@ -19,7 +19,6 @@ beforeAll(() => {
19
19
// and passthrough everything else
20
20
server = setupServer (
21
21
http . post ( 'https://api.netlify.com/api/v1/purge' , ( ) => {
22
- console . log ( 'intercepted purge api call' )
23
22
return HttpResponse . json ( { } )
24
23
} ) ,
25
24
http . all ( / .* / , ( ) => passthrough ( ) ) ,
@@ -91,7 +90,6 @@ test<FixtureTestContext>('Should revalidate path with On-demand Revalidation', a
91
90
expect ( staticPageRevalidated . headers ?. [ 'cache-status' ] ) . toMatch ( / " N e x t .j s " ; h i t / )
92
91
const dateCacheRevalidated = load ( staticPageRevalidated . body ) ( '[data-testid="date-now"]' ) . text ( )
93
92
94
- console . log ( { dateCacheInitial, dateCacheRevalidated } )
95
93
expect ( dateCacheInitial ) . not . toBe ( dateCacheRevalidated )
96
94
} )
97
95
@@ -154,7 +152,7 @@ test<FixtureTestContext>('Should serve correct locale-aware custom 404 pages', a
154
152
) . toBe ( 'fr' )
155
153
} )
156
154
157
- describe . only ( '404 caching' , ( ) => {
155
+ describe ( '404 caching' , ( ) => {
158
156
beforeAll ( ( ) => {
159
157
process . env . ENABLE_404_CACHING = 'true'
160
158
} )
@@ -198,8 +196,6 @@ describe.only('404 caching', () => {
198
196
199
197
describe ( '404 with getStaticProps without revalidate' , ( ) => {
200
198
test < FixtureTestContext > ( 'not matching dynamic paths should be cached permanently' , async ( ctx ) => {
201
- console . log ( '[test] not matching dynamic paths' )
202
-
203
199
await createFixture ( 'page-router-base-path-i18n' , ctx )
204
200
await runPlugin ( ctx )
205
201
@@ -215,8 +211,6 @@ describe.only('404 caching', () => {
215
211
) . toBe ( 's-maxage=31536000, stale-while-revalidate=31536000, durable' )
216
212
} )
217
213
test < FixtureTestContext > ( 'matching dynamic path with revalidate should be cached permanently' , async ( ctx ) => {
218
- console . log ( '[test] matching dynamic path with revalidate' )
219
-
220
214
await createFixture ( 'page-router-base-path-i18n' , ctx )
221
215
await runPlugin ( ctx )
222
216
@@ -258,8 +252,6 @@ describe.only('404 caching', () => {
258
252
} )
259
253
260
254
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
-
263
255
await createFixture ( 'page-router-404-get-static-props-with-revalidate' , ctx )
264
256
await runPlugin ( ctx )
265
257
0 commit comments