@playwright/test 1.32.0-beta-1679336162000 → 1.32.0-beta-1679348958000

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,20 +98,22 @@ class UIMode {
98
98
  app: 'watch.html',
99
99
  headless: (0, _utils.isUnderTest)() && process.env.PWTEST_HEADED_FOR_TEST !== '1'
100
100
  });
101
- process.stdout.write = chunk => {
102
- this._dispatchEvent({
103
- method: 'stdio',
104
- params: chunkToPayload('stdout', chunk)
105
- });
106
- return true;
107
- };
108
- process.stderr.write = chunk => {
109
- this._dispatchEvent({
110
- method: 'stdio',
111
- params: chunkToPayload('stderr', chunk)
112
- });
113
- return true;
114
- };
101
+ if (!process.env.PWTEST_DEBUG) {
102
+ process.stdout.write = chunk => {
103
+ this._dispatchEvent({
104
+ method: 'stdio',
105
+ params: chunkToPayload('stdout', chunk)
106
+ });
107
+ return true;
108
+ };
109
+ process.stderr.write = chunk => {
110
+ this._dispatchEvent({
111
+ method: 'stdio',
112
+ params: chunkToPayload('stderr', chunk)
113
+ });
114
+ return true;
115
+ };
116
+ }
115
117
  const exitPromise = new _utils.ManualPromise();
116
118
  this._page.on('close', () => exitPromise.resolve());
117
119
  let queue = Promise.resolve();
@@ -208,7 +210,7 @@ class UIMode {
208
210
  (0, _compilationCache.dependenciesForTestFile)(fileName).forEach(file => files.add(file));
209
211
  }
210
212
  const watchedFiles = [...files].sort();
211
- if (this._testWatcher && JSON.stringify(this._testWatcher.watchedFiles.toString()) === JSON.stringify(watchedFiles)) return;
213
+ if (this._testWatcher && JSON.stringify(this._testWatcher.watchedFiles) === JSON.stringify(watchedFiles)) return;
212
214
  if (this._testWatcher) {
213
215
  if (this._testWatcher.collector.size) this._dispatchEvent({
214
216
  method: 'filesChanged',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playwright/test",
3
- "version": "1.32.0-beta-1679336162000",
3
+ "version": "1.32.0-beta-1679348958000",
4
4
  "description": "A high-level API to automate web browsers",
5
5
  "repository": "github:Microsoft/playwright",
6
6
  "homepage": "https://playwright.dev",
@@ -34,7 +34,7 @@
34
34
  "license": "Apache-2.0",
35
35
  "dependencies": {
36
36
  "@types/node": "*",
37
- "playwright-core": "1.32.0-beta-1679336162000"
37
+ "playwright-core": "1.32.0-beta-1679348958000"
38
38
  },
39
39
  "optionalDependencies": {
40
40
  "fsevents": "2.3.2"