We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 593081a commit 6837bc1Copy full SHA for 6837bc1
scripts/jestPerTestSetup.ts
@@ -175,6 +175,7 @@ afterAll(async () => {
175
global.serverLogs = []
176
await global.page?.close()
177
await server?.close()
178
+ global.watcher?.close()
179
const beforeAllErr = getBeforeAllError()
180
if (beforeAllErr) {
181
throw beforeAllErr
@@ -200,7 +201,7 @@ function startStaticServer(config?: InlineConfig): Promise<string> {
200
201
}
202
203
// start static file server
- const serve = sirv(resolve(rootDir, 'dist'))
204
+ const serve = sirv(resolve(rootDir, 'dist'), { dev: !!config?.build?.watch })
205
const httpServer = (server = http.createServer((req, res) => {
206
if (req.url === '/ping') {
207
res.statusCode = 200
0 commit comments