playwright-performance-regression 1.0.0 → 1.0.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/CHANGELOG.md +12 -0
- package/dist/{chunk-B4XTLSRN.js → chunk-BA37V6SL.js} +18 -3
- package/dist/{chunk-PWK5XSP2.cjs → chunk-CTE5EY35.cjs} +23 -23
- package/dist/{chunk-VREOANPX.cjs → chunk-LEIBG5A4.cjs} +54 -1
- package/dist/{chunk-YKBX6SAT.js → chunk-ORWOFAZ5.js} +54 -2
- package/dist/{chunk-4WX3Z5MJ.js → chunk-ZHJQFWES.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/config.cjs +13 -13
- package/dist/config.js +1 -1
- package/dist/fixture.cjs +5 -5
- package/dist/fixture.js +2 -2
- package/dist/reporter.cjs +117 -85
- package/dist/reporter.js +23 -6
- package/dist/test.cjs +3 -3
- package/dist/test.js +2 -2
- package/package.json +1 -1
package/dist/reporter.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getRegistered, notWrappedWarning } from './chunk-S6UH6QPK.js';
|
|
2
|
-
import { emptyDirSync, scanDirSync, homeDir, realPathSync, isDirectorySync, listDirSync, readTextFileSync, readTextFile, tempPath, readSuite, readPackageInfo, removeFileSync, relativeSlashPath, directoryOf, resolvePath, writeTextAtomic, writeJsonStable, thresholdsFilePaths, loadThresholds, runPass, readHostInfo, readCiInfo, parseRunReport, asciiTerminal, parseSampleBatch, schemaIssueToIssue, colorEnabled, SCHEMA_VERSIONS, stringifyStable, plural, table, painter, marks, padEnd, truncateMiddle, exceedance, compareText, textWidth, boxLines, formatMs, formatActual, formatLimit, overText, roundMs, roundRatio, ceilTo, floorTo, formatFactor } from './chunk-
|
|
3
|
-
import { ABORT_FAILURE_TEXTS, version, readModeState, generateRunId, PACKAGE_NAME, testFilters, testArgsFromArgv, DEFAULT_MAX_TESTS, SAMPLES_ATTACHMENT_NAME, passCommand, runShape, writeModeState, checkStateFileName, CONFIG_FILE_EXTENSIONS, CONFIG_FILE_BASENAME, REQUEST_KEY_PREFIX, KINDS, THRESHOLDS_COMMAND, DIFF_CATEGORIES, diffCountsText, LISTED_CATEGORIES, diffValuesText, diffMarker, skippedReasonText, PRUNE_COMMAND, diffChangeText, REPOSITORY_URL, LIMIT_NAMES, isRequestKey } from './chunk-
|
|
2
|
+
import { readProcessTable, emptyDirSync, scanDirSync, homeDir, realPathSync, isDirectorySync, listDirSync, readTextFileSync, readTextFile, tempPath, readSuite, readPackageInfo, removeFileSync, relativeSlashPath, directoryOf, resolvePath, writeTextAtomic, writeJsonStable, thresholdsFilePaths, loadThresholds, runPass, readHostInfo, readCiInfo, parseRunReport, asciiTerminal, parseSampleBatch, schemaIssueToIssue, colorEnabled, SCHEMA_VERSIONS, stringifyStable, plural, table, painter, marks, padEnd, truncateMiddle, exceedance, compareText, textWidth, boxLines, formatMs, formatActual, formatLimit, overText, roundMs, roundRatio, ceilTo, floorTo, formatFactor } from './chunk-BA37V6SL.js';
|
|
3
|
+
import { ABORT_FAILURE_TEXTS, version, readModeState, generateRunId, PACKAGE_NAME, testFilters, testArgsFromArgv, DEFAULT_MAX_TESTS, SAMPLES_ATTACHMENT_NAME, passCommand, runShape, writeModeState, checkStateFileName, scriptEnv, CONFIG_FILE_EXTENSIONS, CONFIG_FILE_BASENAME, REQUEST_KEY_PREFIX, KINDS, THRESHOLDS_COMMAND, DIFF_CATEGORIES, diffCountsText, LISTED_CATEGORIES, diffValuesText, diffMarker, skippedReasonText, PRUNE_COMMAND, diffChangeText, REPOSITORY_URL, LIMIT_NAMES, isRequestKey } from './chunk-ORWOFAZ5.js';
|
|
4
4
|
import { resolveConfig, compileHostPatterns, isHostPattern, matchingPattern, DEFAULT_CONFIG, perfDefaults } from './chunk-5Y34Q4DR.js';
|
|
5
5
|
|
|
6
6
|
// src/core/evaluate/files.ts
|
|
@@ -7421,7 +7421,7 @@ var RunSession = class {
|
|
|
7421
7421
|
const passInput = {
|
|
7422
7422
|
execPath: this.host.execPath,
|
|
7423
7423
|
argv: this.host.argv,
|
|
7424
|
-
env: this.
|
|
7424
|
+
env: this.scriptEnv(info.scripts),
|
|
7425
7425
|
scripts: info.scripts
|
|
7426
7426
|
};
|
|
7427
7427
|
const command = passCommand(passInput);
|
|
@@ -7845,14 +7845,29 @@ var RunSession = class {
|
|
|
7845
7845
|
}
|
|
7846
7846
|
/** The words the run added to the test command, as for the next pass (09-REQ-32, 04-REQ-63). */
|
|
7847
7847
|
runArgs() {
|
|
7848
|
+
const { scripts } = this.host.io.readPackageInfo(this.host.cwd);
|
|
7848
7849
|
const shape = runShape({
|
|
7849
7850
|
execPath: this.host.execPath,
|
|
7850
7851
|
argv: this.host.argv,
|
|
7851
|
-
env: this.
|
|
7852
|
-
scripts
|
|
7852
|
+
env: this.scriptEnv(scripts),
|
|
7853
|
+
scripts
|
|
7853
7854
|
});
|
|
7854
7855
|
return { script: shape.script !== null, tail: shape.tail };
|
|
7855
7856
|
}
|
|
7857
|
+
scriptEnvCache = null;
|
|
7858
|
+
/**
|
|
7859
|
+
* The environment with npm_lifecycle_event of the script that started Playwright through
|
|
7860
|
+
* `npx` (04-REQ-63 point 2); the process table is read at most once per run.
|
|
7861
|
+
*/
|
|
7862
|
+
scriptEnv(scripts) {
|
|
7863
|
+
this.scriptEnvCache ??= scriptEnv({
|
|
7864
|
+
env: this.host.env,
|
|
7865
|
+
scripts,
|
|
7866
|
+
pid: this.host.pid,
|
|
7867
|
+
processTable: this.host.processTable?.bind(this.host)
|
|
7868
|
+
});
|
|
7869
|
+
return this.scriptEnvCache;
|
|
7870
|
+
}
|
|
7856
7871
|
/**
|
|
7857
7872
|
* The test directory relative to INIT_CWD, the directory the package manager was called from
|
|
7858
7873
|
* (e.g. the root of a monorepo), or null when it is the same or not below it: an INIT_CWD
|
|
@@ -7867,8 +7882,8 @@ var RunSession = class {
|
|
|
7867
7882
|
}
|
|
7868
7883
|
/** Commands of the project for each mode, for the Next: hint (09-REQ-32). */
|
|
7869
7884
|
commands() {
|
|
7870
|
-
const env = this.host.env;
|
|
7871
7885
|
const info = this.host.io.readPackageInfo(this.configDir);
|
|
7886
|
+
const env = this.scriptEnv(this.host.io.readPackageInfo(this.host.cwd).scripts);
|
|
7872
7887
|
const ctx = {
|
|
7873
7888
|
env: this.settings.config.run.env,
|
|
7874
7889
|
lifecycleEvent: env["npm_lifecycle_event"] ?? null,
|
|
@@ -8130,6 +8145,8 @@ function processHost() {
|
|
|
8130
8145
|
ci: readCiInfo(env),
|
|
8131
8146
|
host: readHostInfo(env),
|
|
8132
8147
|
execPath: process.execPath,
|
|
8148
|
+
pid: process.pid,
|
|
8149
|
+
processTable: readProcessTable,
|
|
8133
8150
|
runPass: (command, passEnv) => runPass(command, passEnv, process.cwd())
|
|
8134
8151
|
};
|
|
8135
8152
|
}
|
package/dist/test.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkCTE5EY35_cjs = require('./chunk-CTE5EY35.cjs');
|
|
4
|
+
require('./chunk-LEIBG5A4.cjs');
|
|
5
5
|
require('./chunk-W7NEFS5V.cjs');
|
|
6
6
|
var test$1 = require('@playwright/test');
|
|
7
7
|
|
|
8
|
-
var test =
|
|
8
|
+
var test = chunkCTE5EY35_cjs.withPerfFixtures(test$1.test);
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "expect", {
|
|
11
11
|
enumerable: true,
|
package/dist/test.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { withPerfFixtures } from './chunk-
|
|
1
|
+
import { withPerfFixtures } from './chunk-ZHJQFWES.js';
|
|
2
2
|
import './chunk-S6UH6QPK.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-ORWOFAZ5.js';
|
|
4
4
|
import './chunk-5Y34Q4DR.js';
|
|
5
5
|
import { test as test$1 } from '@playwright/test';
|
|
6
6
|
export { expect } from '@playwright/test';
|