supercov 4.24.8 → 4.25.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supercov",
3
- "version": "4.24.8",
3
+ "version": "4.25.0",
4
4
  "description": "Coverage, security and code quality for coding agents",
5
5
  "keywords": [
6
6
  "coverage",
@@ -123,14 +123,14 @@
123
123
  "test:windows-tls": "node scripts/windows-tls-test.mjs"
124
124
  },
125
125
  "optionalDependencies": {
126
- "@supercov/cli-darwin-arm64": "4.24.8",
127
- "@supercov/cli-darwin-x64": "4.24.8",
128
- "@supercov/cli-linux-arm64-gnu": "4.24.8",
129
- "@supercov/cli-linux-arm64-musl": "4.24.8",
130
- "@supercov/cli-linux-x64-gnu": "4.24.8",
131
- "@supercov/cli-linux-x64-musl": "4.24.8",
132
- "@supercov/cli-win32-arm64": "4.24.8",
133
- "@supercov/cli-win32-x64": "4.24.8"
126
+ "@supercov/cli-darwin-arm64": "4.25.0",
127
+ "@supercov/cli-darwin-x64": "4.25.0",
128
+ "@supercov/cli-linux-arm64-gnu": "4.25.0",
129
+ "@supercov/cli-linux-arm64-musl": "4.25.0",
130
+ "@supercov/cli-linux-x64-gnu": "4.25.0",
131
+ "@supercov/cli-linux-x64-musl": "4.25.0",
132
+ "@supercov/cli-win32-arm64": "4.25.0",
133
+ "@supercov/cli-win32-x64": "4.25.0"
134
134
  },
135
135
  "peerDependencies": {
136
136
  "@playwright/test": ">=1.55.0",
@@ -628,6 +628,10 @@ function inspectExports(value, depth = 0) {
628
628
  exportedValues.add(object);
629
629
  if (typeof value === "function")
630
630
  patchBuilder(value);
631
+ // What sits below this depth is never inspected: listing it cost every
632
+ // process a descriptor read per key of every export's members.
633
+ if (depth === 2)
634
+ return;
631
635
  for (const key of Reflect.ownKeys(object).slice(0, 200)) {
632
636
  if (key === "prototype" || key === "caller" || key === "callee")
633
637
  continue;
@@ -719,6 +723,12 @@ function injectChildEnvironment(method, args) {
719
723
  // every task aborted with ERR_MODULE_NOT_FOUND. launchSupervisor.js is
720
724
  // generated into the same .supercov directory as register.mjs.
721
725
  environment.NODE_OPTIONS = appendNodeImport(existingEnvironment?.NODE_OPTIONS ?? process.env.NODE_OPTIONS, new URL("./register.mjs", import.meta.url).href);
726
+ // The Playwright runner marked its children as not test workers; a process
727
+ // it forks from its worker entry is one (see register.mjs).
728
+ if (method === "fork" &&
729
+ environment.SUPERCOV_PLAYWRIGHT_WORKER !== undefined &&
730
+ /\/worker\/(?:workerProcessEntry|workerMain)\.js$/.test(String(args[0]).replaceAll("\\", "/")))
731
+ environment.SUPERCOV_PLAYWRIGHT_WORKER = "1";
722
732
  next[index] = { ...options, env: environment };
723
733
  if (typeof original === "function")
724
734
  next.splice(index + 1, 0, original);