Skip to content

Commit d5d8719

Browse files
codenemericallam
authored andcommitted
Update README.md
1 parent d5d24a4 commit d5d8719

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

packages/cli-v3/e2e/README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,15 @@ This will test your fixture project, and generate outputs in the `packages/cli-v
9292

9393
This is necessary to allow to use `yarn` without having a warning on the current project being a `pnpm` project.
9494

95-
5. Install the fixture dependencies and generate lockfiles.
95+
5. Add the following `.yarnrc.yaml` in your fixture folder.
96+
97+
This will avoid having `.pnp.cjs` and `.pnp.loader.mjs` and keep versioned files to a minimum.
98+
99+
```yaml .yarnrc.yml
100+
nodeLinker: node-modules
101+
```
102+
103+
6. Install the fixture dependencies and generate lockfiles.
96104

97105
Like you would in any project.
98106
E.g. if your fixture contains a trigger task that uses the `jsdom` library:
@@ -105,7 +113,7 @@ This will test your fixture project, and generate outputs in the `packages/cli-v
105113

106114
> This will update the `package.json` and generate the `pnpm-lock.yaml` file.
107115

108-
6. To run the test suite against multiple package manager, we need to generate the other lockfiles.
116+
7. To run the test suite against multiple package manager, we need to generate the other lockfiles.
109117

110118
```sh
111119
cd packages/cli-v3/e2e/fixtures/<fixture-name>
@@ -117,7 +125,7 @@ This will test your fixture project, and generate outputs in the `packages/cli-v
117125

118126
> Do it in this order, otherwise `npm install` will update the existing `yarn.lock` file with legacy version 1.
119127

120-
7. Create a new `packages/cli-v3/e2e/fixtures/trigger` folder, and create a trigger task in it.
128+
8. Create a new `packages/cli-v3/e2e/fixtures/trigger` folder, and create a trigger task in it.
121129

122130
Here is an example:
123131

@@ -132,7 +140,7 @@ This will test your fixture project, and generate outputs in the `packages/cli-v
132140
});
133141
```
134142

135-
8. Add a trigger configuration file.
143+
9. Add a trigger configuration file.
136144

137145
The configuration file is mandatory here, the E2E suite does not execute `trigger.dev` commands.
138146

@@ -145,9 +153,9 @@ This will test your fixture project, and generate outputs in the `packages/cli-v
145153

146154
> The project reference can be anything here, as the suite runs locally without connecting to the platform.
147155

148-
9. Commit your changes.
156+
10. Commit your changes.
149157

150-
10. Add your fixture test configuration in `fixtures.config.js`.
158+
11. Add your fixture test configuration in `fixtures.config.js`.
151159

152160
```javascript fixtures.config.js
153161
export const fixturesConfig = [

0 commit comments

Comments
 (0)