Skip to content

Commit a5a707e

Browse files
committed
Make tests easier to run locally
1 parent e8a2333 commit a5a707e

3 files changed

Lines changed: 20 additions & 10 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* @type {import('next').NextConfig}
3+
*/
4+
const config = {
5+
experimental: {
6+
optimizeRouterScrolling: true,
7+
},
8+
}
9+
10+
module.exports = config
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* @type {import('next').NextConfig}
3+
*/
4+
const config = {
5+
experimental: {
6+
optimizeRouterScrolling: true,
7+
},
8+
}
9+
10+
module.exports = config

test/e2e/app-dir/router-disable-smooth-scroll/router-disable-smooth-scroll.optimized.test.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ import { retry } from 'next-test-utils'
44
describe('router smooth scroll optimization (optimized)', () => {
55
const { next } = nextTestSetup({
66
files: __dirname + '/fixtures/optimized',
7-
nextConfig: {
8-
experimental: {
9-
optimizeRouterScrolling: true,
10-
},
11-
},
127
})
138

149
const getTopScroll = async (browser: any) =>
@@ -66,11 +61,6 @@ describe('router smooth scroll optimization (optimized)', () => {
6661
describe('router smooth scroll optimization (optimized early exit)', () => {
6762
const { next } = nextTestSetup({
6863
files: __dirname + '/fixtures/optimized-no-data',
69-
nextConfig: {
70-
experimental: {
71-
optimizeRouterScrolling: true,
72-
},
73-
},
7464
})
7565

7666
const getTopScroll = async (browser: any) =>

0 commit comments

Comments
 (0)