patchwright 1.64.1 → 1.65.1
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.
- package/README.md +116 -145
- package/helpers.mjs +387 -0
- package/lib/cli/testActions.js +0 -1
- package/lib/common/index.js +142 -65
- package/lib/common/index.js.txt +7 -7
- package/lib/matchers/expect.js +56 -30
- package/lib/matchers/expect.js.LICENSE +3 -3
- package/lib/matchers/expect.js.txt +4 -4
- package/lib/mcp/test/testContext.js +2 -8
- package/lib/runner/index.js +500 -401
- package/lib/runner/index.js.txt +24 -23
- package/lib/transform/babelBundle.js +81 -57
- package/lib/transform/babelBundle.js.txt +2 -2
- package/lib/transform/esmLoader.js +361 -163
- package/lib/transform/esmLoader.js.LICENSE +3 -3
- package/lib/transform/esmLoader.js.txt +9 -8
- package/lib/worker/workerProcessEntry.js +6 -14
- package/lib/worker/workerProcessEntry.js.txt +2 -2
- package/package.json +6 -5
- package/types/test.d.ts +365 -41
- package/types/testReporter.d.ts +22 -2
|
@@ -24,7 +24,7 @@ The following npm packages are inlined into this bundle.
|
|
|
24
24
|
- jest-util@30.4.1 (https://github.com/jestjs/jest)
|
|
25
25
|
- js-tokens@4.0.0 (https://github.com/lydell/js-tokens)
|
|
26
26
|
- picocolors@1.1.1 (https://github.com/alexeyraspopov/picocolors)
|
|
27
|
-
- picomatch@4.0.
|
|
27
|
+
- picomatch@4.0.7 (https://github.com/micromatch/picomatch)
|
|
28
28
|
- pretty-format@30.4.1 (https://github.com/jestjs/jest)
|
|
29
29
|
- react-is@18.3.1 (https://github.com/facebook/react)
|
|
30
30
|
- react-is@19.2.7 (https://github.com/facebook/react)
|
|
@@ -475,7 +475,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
475
475
|
=========================================
|
|
476
476
|
END OF picocolors@1.1.1 NOTICES AND INFORMATION
|
|
477
477
|
|
|
478
|
-
%% picomatch@4.0.
|
|
478
|
+
%% picomatch@4.0.7 NOTICES AND INFORMATION BEGIN HERE
|
|
479
479
|
=========================================
|
|
480
480
|
The MIT License (MIT)
|
|
481
481
|
|
|
@@ -499,7 +499,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
499
499
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
500
500
|
THE SOFTWARE.
|
|
501
501
|
=========================================
|
|
502
|
-
END OF picomatch@4.0.
|
|
502
|
+
END OF picomatch@4.0.7 NOTICES AND INFORMATION
|
|
503
503
|
|
|
504
504
|
%% pretty-format@30.4.1 NOTICES AND INFORMATION BEGIN HERE
|
|
505
505
|
=========================================
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# packages/playwright/lib/matchers/expect.js
|
|
2
|
-
# total:
|
|
2
|
+
# total: 535.4 KB
|
|
3
3
|
|
|
4
4
|
## Inlined (59)
|
|
5
5
|
7.9 KB node_modules/@babel/code-frame/lib/index.js
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
3.1 KB node_modules/picocolors/picocolors.js
|
|
36
36
|
0.5 KB node_modules/picomatch/index.js
|
|
37
37
|
5.3 KB node_modules/picomatch/lib/constants.js
|
|
38
|
-
|
|
39
|
-
5.
|
|
40
|
-
9.
|
|
38
|
+
34.3 KB node_modules/picomatch/lib/parse.js
|
|
39
|
+
5.3 KB node_modules/picomatch/lib/picomatch.js
|
|
40
|
+
9.8 KB node_modules/picomatch/lib/scan.js
|
|
41
41
|
2.3 KB node_modules/picomatch/lib/utils.js
|
|
42
42
|
42.0 KB node_modules/pretty-format/build/index.js
|
|
43
43
|
4.4 KB node_modules/pretty-format/node_modules/ansi-styles/index.js
|
|
@@ -182,7 +182,7 @@ class TestContext {
|
|
|
182
182
|
const { testRunner: runner, screen, claimStdio, releaseStdio } = testRunnerAndScreen;
|
|
183
183
|
claimStdio();
|
|
184
184
|
try {
|
|
185
|
-
const setupReporter = new
|
|
185
|
+
const setupReporter = new import_runner.ListReporter({ configDir, screen, includeTestId: true });
|
|
186
186
|
const { status: status2 } = await runner.runGlobalSetup([setupReporter]);
|
|
187
187
|
if (status2 !== "passed")
|
|
188
188
|
return { output: testRunnerAndScreen.output.join("\n"), status: status2 };
|
|
@@ -204,7 +204,7 @@ class TestContext {
|
|
|
204
204
|
const abortPromise = abort ? abort.promise.then(() => "interrupted") : new Promise(() => {
|
|
205
205
|
});
|
|
206
206
|
try {
|
|
207
|
-
const reporter = new
|
|
207
|
+
const reporter = new import_runner.ListReporter({ configDir, screen, includeTestId: true });
|
|
208
208
|
status = await Promise.race([
|
|
209
209
|
runner.runTests(reporter, params).then((result) => result.status),
|
|
210
210
|
testRunnerAndScreen.waitForTestPaused().then(() => "paused"),
|
|
@@ -292,12 +292,6 @@ const bestPracticesMarkdown = `
|
|
|
292
292
|
- NEVER! use page.waitForTimeout()
|
|
293
293
|
- NEVER! use page.evaluate()
|
|
294
294
|
`;
|
|
295
|
-
class MCPListReporter extends import_runner.ListReporter {
|
|
296
|
-
async onTestPaused() {
|
|
297
|
-
await new Promise(() => {
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
295
|
// Annotate the CommonJS export names for ESM import in node:
|
|
302
296
|
0 && (module.exports = {
|
|
303
297
|
GeneratorJournal,
|