File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,22 @@ 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
+ // There is also a bug on Windows on Node.js 18.20.6, that cause build failures on this fixture
24
+ // see https://github.com/opennextjs/opennextjs-netlify/actions/runs/13268839161/job/37043172448?pr=2749#step:12:78
25
+ 'middleware-og' ,
26
+ ] )
27
+
21
28
const limit = pLimit ( Math . max ( 2 , cpus ( ) . length / 2 ) )
22
29
const fixtures = readdirSync ( fixturesDir )
23
30
// Ignoring things like `.DS_Store`.
24
31
. filter ( ( fixture ) => ! fixture . startsWith ( '.' ) )
25
32
// Applying the filter, if one is set.
26
33
. filter ( ( fixture ) => ! fixtureFilter || fixture . startsWith ( fixtureFilter ) )
34
+ // Filter out fixtures that are only needed for E2E tests
35
+ . filter ( ( fixture ) => ! e2eOnlyFixtures . has ( fixture ) )
36
+
27
37
console . log ( `🧪 Preparing fixtures: ${ fixtures . join ( ', ' ) } ` )
28
38
const fixtureList = new Set ( fixtures )
29
39
const fixtureCount = fixtures . length
You can’t perform that action at this time.
0 commit comments