File tree 2 files changed +14
-1
lines changed
.github/actions/next-stats-action/src/prepare
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,13 @@ module.exports = (actionInfo) => {
131
131
// to the correct versions
132
132
for ( const pkgName of pkgDatas . keys ( ) ) {
133
133
const { pkg, pkgPath } = pkgDatas . get ( pkgName )
134
- await exec ( `cd ${ pkgPath } && yarn pack -f ${ pkg } -packed.tgz` , true )
134
+ await exec ( `cd ${ pkgPath } && yarn pack -f ${ pkg } -packed.tgz` , true , {
135
+ env : {
136
+ // Yarn installed through corepack will not run in pnpm project without this env var set
137
+ // This var works for corepack >=0.15.0
138
+ COREPACK_ENABLE_STRICT : '0' ,
139
+ } ,
140
+ } )
135
141
}
136
142
return pkgPaths
137
143
} ,
Original file line number Diff line number Diff line change @@ -33,6 +33,13 @@ When the test runs it will open the browser that is in the background by default
33
33
pnpm testonly test/integration/production/ -t " should allow etag header support"
34
34
```
35
35
36
+ ** End-to-end (e2e)** tests are run in complete isolation from the repository.
37
+ When you run an e2e test, a local version of next will be created inside your system's temp folder (eg. /tmp),
38
+ which is then linked to the app, also created inside a temp folder. A server is started on a random port, against which the tests will run.
39
+ After all tests have finished, the server is destroyed and all remaining files are deleted from the temp folder.
40
+
41
+ You will need ` yarn ` for running e2e tests. Installing it ` corepack ` won't work because ` next.js ` is ` pnpm ` workspace.
42
+
36
43
## Writing tests for Next.js
37
44
38
45
### Getting Started
You can’t perform that action at this time.
0 commit comments