Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(nexttestsetup): teardown nextinstance gracefully (#55144)
### What? https://vercel.slack.com/archives/C04KC8A53T7/p1694190462958199 I realized we throws an error attempt to destory against undefined instance when `beforeAll` fails in any reason. This is quite redundant error since if next instance doesn't exist, likely there's an upstream test failures already and destory against undefined error is not useful to debug anyway. PR replaces `nextTestSetup`'s teardown first, for the remaining places calling `next.destory` explicitly will be amended later.
- Loading branch information