Skip to content

Commit 9ba9da0

Browse files
author
Marc Littlemore
committed
docs: add test documentation
1 parent d8ff332 commit 9ba9da0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,29 @@ The simplest way to do this is to create a `.npmrc` file in the root of your pro
156156
public-hoist-pattern[]=*
157157
```
158158

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+
159182
## Feedback
160183

161184
If you think you have found a bug in Next.js on Netlify,

0 commit comments

Comments
 (0)