Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar authored Mar 12, 2023
1 parent e359e8d commit 74de3ce
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ This package sets up a testing fixture for NextJS applications.

It's great for testing API endpoints.

For more speed, you might want to use [nextjs-server-modules](https://github.com/seamapi/nextjs-server-modules) which
have a faster compilation process.

## Installation

```sh
Expand Down Expand Up @@ -49,13 +52,3 @@ export default async (t) => {
}
}
```

## FAQ / Common Issues

### You need to rebuild nsm if you change a frontend page (a non-api route) or introduce a new route

You might see an error like this while running tests:

![image](https://user-images.githubusercontent.com/1910070/148661231-bfb12f6e-5a1c-4a3c-bff9-5d3d818656e0.png)

`nsm build` goes through your files and builds a `routes.ts` index, if it's up to date the file will be missing.

0 comments on commit 74de3ce

Please sign in to comment.