Skip to content

Commit 238e6e6

Browse files
committed
test: remove only and console logs
1 parent 2962d0b commit 238e6e6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/integration/page-router.test.ts

+1-9
Original file line numberDiff line numberDiff line change
@@ -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(/"Next.js"; hit/)
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

Comments
 (0)