Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(ct): fsWatcher update comparison (#36366)

Max Schmittab7b18e36c03
diff --git a/packages/playwright/src/fsWatcher.ts b/packages/playwright/src/fsWatcher.ts
index 4078e4f994..a6989defcf 100644
--- a/packages/playwright/src/fsWatcher.ts
+++ b/packages/playwright/src/fsWatcher.ts
@@ -33,7 +33,7 @@ export class Watcher {
}
async update(watchedPaths: string[], ignoredFolders: string[], reportPending: boolean) {
- if (JSON.stringify([this._watchedPaths, this._ignoredFolders]) === JSON.stringify(watchedPaths, ignoredFolders))
+ if (JSON.stringify([this._watchedPaths, this._ignoredFolders]) === JSON.stringify([watchedPaths, ignoredFolders]))
return;
if (reportPending)