Skip to content

Commit 8fb562c

Browse files
committed
test: resolve watch path
1 parent bd6f3f8 commit 8fb562c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/nuxt/test/builder.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { writeFileSync } from 'node:fs'
22
import { mkdir, rm } from 'node:fs/promises'
3-
import { join, relative } from 'node:path'
3+
import { join, relative, resolve } from 'node:path'
44

55
import { build, loadNuxt } from 'nuxt'
66
import { findWorkspaceDir } from 'pkg-types'
@@ -31,6 +31,7 @@ describe('builder:watch', async () => {
3131

3232
nuxt.hook('restart', () => { restarts++ })
3333
nuxt.hook('builder:watch', (event, path) => {
34+
path = resolve(tmpDir, path)
3435
if (event === 'add') {
3536
events.push(relative(tmpDir, path))
3637
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy