Skip to content

Commit bf6cbf2

Browse files
committed
fix(hmr-websocket): small fix
1 parent d8eb35e commit bf6cbf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-test-utils/createTestProject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function createTestProject (name, preset, cwd, initGit = true)
1717
return fs.existsSync(path.resolve(projectRoot, file))
1818
}
1919

20-
if (has(projectRoot)) {
20+
if (has(name)) {
2121
console.warn(`An existing test project already exists for ${name}. May get unexpected test results due to project re-use`)
2222
}
2323

0 commit comments

Comments
 (0)