We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd6f3f8 commit 8fb562cCopy full SHA for 8fb562c
packages/nuxt/test/builder.test.ts
@@ -1,6 +1,6 @@
1
import { writeFileSync } from 'node:fs'
2
import { mkdir, rm } from 'node:fs/promises'
3
-import { join, relative } from 'node:path'
+import { join, relative, resolve } from 'node:path'
4
5
import { build, loadNuxt } from 'nuxt'
6
import { findWorkspaceDir } from 'pkg-types'
@@ -31,6 +31,7 @@ describe('builder:watch', async () => {
31
32
nuxt.hook('restart', () => { restarts++ })
33
nuxt.hook('builder:watch', (event, path) => {
34
+ path = resolve(tmpDir, path)
35
if (event === 'add') {
36
events.push(relative(tmpDir, path))
37
}
0 commit comments