@@ -18,12 +18,31 @@ const NEXT_VERSION = process.env.NEXT_VERSION ?? 'latest'
18
18
const fixturesDir = fileURLToPath ( new URL ( `./fixtures` , import . meta. url ) )
19
19
const fixtureFilter = argv [ 2 ] ?? ''
20
20
21
+ // E2E tests run next builds, so we don't need to prepare those ahead of time for integration tests
22
+ const e2eOnlyFixtures = new Set ( [
23
+ 'after' ,
24
+ 'cli-before-regional-blobs-support' ,
25
+ 'dist-dir' ,
26
+ // There is also a bug on Windows on Node.js 18.20.6, that cause build failures on this fixture
27
+ // see https://github.com/opennextjs/opennextjs-netlify/actions/runs/13268839161/job/37043172448?pr=2749#step:12:78
28
+ 'middleware-og' ,
29
+ 'middleware-single-matcher' ,
30
+ 'nx-integrated' ,
31
+ 'turborepo' ,
32
+ // We do have a skipped test using this fixture (due to integration test setup not working for monorepos)
33
+ 'turborepo-npm' ,
34
+ 'unstable-cache' ,
35
+ ] )
36
+
21
37
const limit = pLimit ( Math . max ( 2 , cpus ( ) . length / 2 ) )
22
38
const fixtures = readdirSync ( fixturesDir )
23
39
// Ignoring things like `.DS_Store`.
24
40
. filter ( ( fixture ) => ! fixture . startsWith ( '.' ) )
25
41
// Applying the filter, if one is set.
26
42
. filter ( ( fixture ) => ! fixtureFilter || fixture . startsWith ( fixtureFilter ) )
43
+ // Filter out fixtures that are only needed for E2E tests
44
+ . filter ( ( fixture ) => ! e2eOnlyFixtures . has ( fixture ) )
45
+
27
46
console . log ( `🧪 Preparing fixtures: ${ fixtures . join ( ', ' ) } ` )
28
47
const fixtureList = new Set ( fixtures )
29
48
const fixtureCount = fixtures . length
0 commit comments