@@ -92,7 +92,15 @@ This will test your fixture project, and generate outputs in the `packages/cli-v
92
92
93
93
This is necessary to allow to use `yarn` without having a warning on the current project being a `pnpm` project.
94
94
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.
96
104
97
105
Like you would in any project.
98
106
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
105
113
106
114
> This will update the `package.json` and generate the `pnpm-lock.yaml` file.
107
115
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.
109
117
110
118
```sh
111
119
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
117
125
118
126
> Do it in this order, otherwise `npm install` will update the existing `yarn.lock` file with legacy version 1.
119
127
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.
121
129
122
130
Here is an example:
123
131
@@ -132,7 +140,7 @@ This will test your fixture project, and generate outputs in the `packages/cli-v
132
140
});
133
141
```
134
142
135
- 8 . Add a trigger configuration file.
143
+ 9 . Add a trigger configuration file.
136
144
137
145
The configuration file is mandatory here, the E2E suite does not execute `trigger.dev` commands.
138
146
@@ -145,9 +153,9 @@ This will test your fixture project, and generate outputs in the `packages/cli-v
145
153
146
154
> The project reference can be anything here, as the suite runs locally without connecting to the platform.
147
155
148
- 9 . Commit your changes.
156
+ 10 . Commit your changes.
149
157
150
- 10 . Add your fixture test configuration in `fixtures.config.js`.
158
+ 11 . Add your fixture test configuration in `fixtures.config.js`.
151
159
152
160
```javascript fixtures.config.js
153
161
export const fixturesConfig = [
0 commit comments