You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -156,6 +156,29 @@ The simplest way to do this is to create a `.npmrc` file in the root of your pro
156
156
public-hoist-pattern[]=*
157
157
```
158
158
159
+
## Running the tests
160
+
161
+
To run the tests, ensure that the dependencies are installed as follows:
162
+
163
+
```shell
164
+
npm install
165
+
```
166
+
167
+
Then run the tests:
168
+
169
+
```shell
170
+
npm test
171
+
```
172
+
173
+
In order to run the end-to-end (E2E) tests, you'll need to set an environment variable `NETLIFY_AUTH_TOKEN` to a valid Netlify personal access token. This can be obtained from the [Netlify UI](https://docs.netlify.com/cli/get-started/#obtain-a-token-in-the-netlify-ui).
174
+
175
+
Then run the E2E tests:
176
+
177
+
```shell
178
+
NETLIFY_AUTH_TOKEN=your-token-here npm test:next
179
+
```
180
+
181
+
159
182
## Feedback
160
183
161
184
If you think you have found a bug in Next.js on Netlify,
0 commit comments