Skip to content

Commit 265410c

Browse files
committed
test: fix windows watecher integ tests failures
1 parent cd049a4 commit 265410c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/phoenix-fs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ function _watch(ws, metadata) {
321321

322322
// Filter function to integrate with chokidar
323323
function isIgnored(pathToFilter) {
324+
pathToFilter = path.normalize(pathToFilter);
324325
if(fullPathToWatch === pathToFilter) {
325326
// if we are watching a file directly given file name, we don't run it though gitignore.
326327
// also we cant get relative path of gitignore with respect to a file as root.

src-tauri/node-src/phoenix-fs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ function _watch(ws, metadata) {
321321

322322
// Filter function to integrate with chokidar
323323
function isIgnored(pathToFilter) {
324+
pathToFilter = path.normalize(pathToFilter);
324325
if(fullPathToWatch === pathToFilter) {
325326
// if we are watching a file directly given file name, we don't run it though gitignore.
326327
// also we cant get relative path of gitignore with respect to a file as root.

0 commit comments

Comments
 (0)