@codyswann/lisa 5.14.2 → 6.0.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/all/copy-overwrite/scripts/check-npm-publish-landed.mjs +5 -2
- package/all/copy-overwrite/scripts/lib/gate-failure-diagnosis.mjs +14 -18
- package/all/copy-overwrite/scripts/lib/invoked-as-script.d.mts +5 -0
- package/all/copy-overwrite/scripts/lisa-commit-msg-gates.mjs +1 -1
- package/all/copy-overwrite/scripts/lisa-destructive-guard.mjs +4 -4
- package/all/copy-overwrite/scripts/lisa-environment-prepare.mjs +2 -2
- package/all/copy-overwrite/scripts/lisa-gates.mjs +61 -30
- package/all/copy-overwrite/scripts/lisa-reconcile-policy.mjs +5 -3
- package/all/copy-overwrite/scripts/lisa-run-gates.mjs +2 -2
- package/all/copy-overwrite/scripts/lisa-work-item.mjs +3 -2
- package/all/copy-overwrite/scripts/npm-updater-helper-graph.json +6 -6
- package/all/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
- package/cdk/copy-overwrite/eslint.cdk.ts +7 -161
- package/cdk/copy-overwrite/tsconfig.eslint.json +5 -1
- package/dist/cli/lisa-test-run.js +0 -1
- package/dist/cli/lisa-test-run.js.map +1 -1
- package/dist/configs/jest/base.d.ts +2 -2
- package/dist/configs/jest/index.d.ts +5 -6
- package/dist/configs/jest/index.d.ts.map +1 -1
- package/dist/configs/jest/index.js +5 -6
- package/dist/configs/jest/index.js.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +30 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.d.ts +5 -0
- package/dist/core/nightly-e2e-guard-behavior-certificate.d.ts.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +8 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +61 -55
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/expo/copy-overwrite/eslint.expo.ts +17 -18
- package/expo/copy-overwrite/tsconfig.eslint.json +5 -1
- package/harper-fabric/copy-overwrite/tsconfig.eslint.json +5 -1
- package/nestjs/copy-overwrite/eslint.nestjs.ts +7 -161
- package/nestjs/copy-overwrite/tsconfig.eslint.json +5 -1
- package/nestjs/copy-overwrite/tsconfig.spec.json +2 -3
- package/package.json +6 -8
- package/phaser/copy-overwrite/tsconfig.eslint.json +5 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-agy/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-agy/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-agy/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-agy/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-agy/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-agy/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-agy/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa-copilot/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-copilot/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-copilot/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-copilot/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-copilot/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-copilot/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-copilot/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-copilot/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa-cursor/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-cursor/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-cursor/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-cursor/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-cursor/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-cursor/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-cursor/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-cursor/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-devin/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/lisa-devin/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/lisa-devin/scripts/design-intake-gate.mjs +23 -5
- package/plugins/lisa-devin/scripts/design-source-gate.mjs +5 -5
- package/plugins/lisa-devin/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/lisa-devin/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/lisa-devin/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/lisa-devin/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/lisa-devin/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/lisa-devin/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/scripts/wiki-status.mjs +18 -0
- package/plugins/lisa-wiki-devin/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/.devin-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-devin/scripts/wiki-status.mjs +18 -0
- package/plugins/src/base/hooks/threshold-ratchet-families.mjs +0 -8
- package/plugins/src/base/scripts/design-bindings-probe.mjs +37 -8
- package/plugins/src/base/scripts/design-intake-gate.mjs +23 -5
- package/plugins/src/base/scripts/design-source-gate.mjs +5 -5
- package/plugins/src/base/scripts/lifecycle-label-trust.mjs +1 -1
- package/plugins/src/base/scripts/rollup-blocker-classification.mjs +41 -4
- package/plugins/src/base/skills/lisa-detect-tooling/scripts/detect-tooling.mjs +3 -3
- package/plugins/src/base/skills/lisa-secrets-access/scripts/aws-bootstrap.mjs +2 -2
- package/plugins/src/base/skills/lisa-secrets-access/scripts/doctor-secrets.mjs +1 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/publish-aws-bootstrap.mjs +4 -3
- package/plugins/src/base/skills/lisa-secrets-access/scripts/sync-secret-to-ci.mjs +1 -1
- package/plugins/src/base/skills/lisa-secrets-access/scripts/tools-from-notes.mjs +1 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/scripts/toolchain.mjs +2 -2
- package/plugins/src/base/skills/lisa-setup-workstation/scripts/catalogue.mjs +32 -1
- package/plugins/src/base/skills/lisa-setup-workstation/scripts/cli.mjs +2 -2
- package/plugins/src/base/skills/lisa-setup-workstation/scripts/workstation.mjs +22 -7
- package/plugins/src/wiki/scripts/wiki-status.mjs +18 -0
- package/rails/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
- package/scripts/check-learnings-budget.ts +4 -4
- package/scripts/check-typecheck-tests.mjs +119 -129
- package/scripts/check-whole-output-guards.mjs +12 -2
- package/scripts/generate-nightly-e2e-guard-certificate.mjs +6 -0
- package/scripts/lib/dependency-tree.mjs +7 -11
- package/scripts/lib/invoked-as-script.d.mts +5 -0
- package/scripts/lisa-ruleset-payload.mjs +1 -1
- package/scripts/measure-tmpdir-growth.mjs +21 -2
- package/scripts/reconcile-release-tags.mjs +3 -3
- package/scripts/two-channel-couplings.json +1 -1
- package/scripts/update-node-version.ts +1 -1
- package/typescript/copy-overwrite/scripts/check-nightly-e2e-health.mjs +1 -1
- package/typescript/copy-overwrite/scripts/threshold-ratchet-families.mjs +0 -8
- package/typescript/copy-overwrite/tsconfig.eslint.json +5 -1
- package/dist/configs/jest/cdk.d.ts +0 -33
- package/dist/configs/jest/cdk.d.ts.map +0 -1
- package/dist/configs/jest/cdk.js +0 -29
- package/dist/configs/jest/cdk.js.map +0 -1
- package/dist/configs/jest/nestjs.d.ts +0 -36
- package/dist/configs/jest/nestjs.d.ts.map +0 -1
- package/dist/configs/jest/nestjs.js +0 -49
- package/dist/configs/jest/nestjs.js.map +0 -1
- package/dist/configs/jest/typescript.d.ts +0 -29
- package/dist/configs/jest/typescript.d.ts.map +0 -1
- package/dist/configs/jest/typescript.js +0 -37
- package/dist/configs/jest/typescript.js.map +0 -1
|
@@ -11,17 +11,13 @@
|
|
|
11
11
|
* module — so the gate's `if (tsc.error)` guard does not fire. node's
|
|
12
12
|
* "Cannot find module" goes to stderr and does not match the gate's
|
|
13
13
|
* `file(line,col): error TSxxxx:` pattern, so the parsed-diagnostics map comes
|
|
14
|
-
* back EMPTY.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* Following that deletes 370 live quarantine entries on the word of a checker
|
|
23
|
-
* that compiled nothing. The comparison was not wrong — it was correct about an
|
|
24
|
-
* input it was never entitled to accept.
|
|
14
|
+
* back EMPTY. The gate then held a file-level quarantine of known-failing files
|
|
15
|
+
* (since deleted, CodySwannGT/lisa#4923), and every one of them satisfied "has
|
|
16
|
+
* no errors": the gate reported all 370 as fixed and instructed their removal
|
|
17
|
+
* — a destructive edit ordered on the word of a checker that compiled nothing.
|
|
18
|
+
* The comparison was not wrong; it was correct about an input it was never
|
|
19
|
+
* entitled to accept. Without the quarantine the same emptiness would read as
|
|
20
|
+
* a clean run, which is the same defect pointed the other way.
|
|
25
21
|
*
|
|
26
22
|
* ## Why "cannot measure" is a THIRD outcome, not a failure message
|
|
27
23
|
*
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// This file is managed by Lisa and IS replaced on each `lisa` run.
|
|
2
|
+
// Do not edit directly — durable changes belong upstream in Lisa.
|
|
3
|
+
|
|
4
|
+
/** Whether the calling module was run as the CLI entry point, comparing real paths. */
|
|
5
|
+
export function invokedAsScript(moduleUrl: string, argv1?: string): boolean;
|
|
@@ -307,7 +307,7 @@ function pullRequestRule(policy) {
|
|
|
307
307
|
* @param {object} [options.gates] The gates block.
|
|
308
308
|
* @param {object} [options.policy] The policy block.
|
|
309
309
|
* @param {string} [options.moment] Moment to derive awaited checks for.
|
|
310
|
-
* @returns {
|
|
310
|
+
* @returns {{name: string, target: string, enforcement: unknown, conditions: {ref_name: {exclude: unknown[], include: unknown[]}}, bypass_actors: unknown[], rules: Array<{type: string, parameters?: Record<string, unknown>}>}} A create/update payload for the `base` ruleset.
|
|
311
311
|
*/
|
|
312
312
|
export function buildRulesetPayload({
|
|
313
313
|
gates = {},
|
|
@@ -73,7 +73,11 @@ export function collectBoundedEntryNames(iterable, limit = MAX_TMPDIR_ENTRIES) {
|
|
|
73
73
|
return names.sort(codePointCompare);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* Build sorted prefix counts while enforcing a unique-prefix cap.
|
|
78
|
+
* @param {readonly string[]} names Entry names.
|
|
79
|
+
* @returns {Array<{prefix: string, count: number}>} Counts, most common first.
|
|
80
|
+
*/
|
|
77
81
|
function prefixCounts(names) {
|
|
78
82
|
const counts = new Map();
|
|
79
83
|
for (const name of names) {
|
|
@@ -533,11 +537,26 @@ function assertComparable(before, after) {
|
|
|
533
537
|
}
|
|
534
538
|
}
|
|
535
539
|
|
|
540
|
+
/**
|
|
541
|
+
* What changed in the temp directory between two snapshots.
|
|
542
|
+
* @typedef {object} GrowthReport
|
|
543
|
+
* @property {number} total Entries in the current snapshot.
|
|
544
|
+
* @property {number|null} delta Change in entry count, or null with no previous snapshot.
|
|
545
|
+
* @property {number} created Entries that appeared.
|
|
546
|
+
* @property {number} removed Entries that disappeared.
|
|
547
|
+
* @property {number} unreclaimed Net entries created and not removed.
|
|
548
|
+
* @property {number|null} elapsedMs Time between snapshots, or null.
|
|
549
|
+
* @property {number|null} rateEntriesPerDay Net growth rate, or null.
|
|
550
|
+
* @property {Array<{prefix: string, count: number}>} topPrefixes The ten most common canonical prefixes.
|
|
551
|
+
* @property {{total: number, owned: number, live: number, unowned: number, created: number, removed: number, unreclaimed: number, newlyUnowned: number}} namespace Lisa scratch-namespace counts.
|
|
552
|
+
* @property {string[]} violations Plain-language growth violations.
|
|
553
|
+
*/
|
|
554
|
+
|
|
536
555
|
/**
|
|
537
556
|
* Compare two complete snapshots without hiding equal creation/removal.
|
|
538
557
|
* @param {object|undefined} before Previous snapshot
|
|
539
558
|
* @param {object} after Current snapshot
|
|
540
|
-
* @returns {
|
|
559
|
+
* @returns {GrowthReport} Deterministic growth report
|
|
541
560
|
*/
|
|
542
561
|
export function buildGrowthReport(before, after) {
|
|
543
562
|
if (before === undefined) {
|
|
@@ -160,8 +160,8 @@ export function classifyProbe({ verdict = null } = {}) {
|
|
|
160
160
|
* registry outage exactly.
|
|
161
161
|
* @param {object} options Inputs.
|
|
162
162
|
* @param {readonly string[]} options.tags Every ref name in the repository.
|
|
163
|
-
* @param {(version: string) => {
|
|
164
|
-
* @returns {{rows:
|
|
163
|
+
* @param {(version: string) => {verdict?: string|null}} options.probe Registry probe; its `verdict` is classified by `classifyProbe`.
|
|
164
|
+
* @returns {{rows: Array<{tag: string, version: string, verdict: string}>, ignored: string[]}} Rows per release tag, and refs that were not release tags.
|
|
165
165
|
*/
|
|
166
166
|
export function reconcile({ tags, probe }) {
|
|
167
167
|
const rows = [];
|
|
@@ -234,7 +234,7 @@ export async function probeVersion(
|
|
|
234
234
|
* a proven failed release. Someone reading the report in a hurry must not be
|
|
235
235
|
* able to take the number for an incident count, so the distinction is printed
|
|
236
236
|
* rather than left in a doc comment nobody opens.
|
|
237
|
-
* @param {{rows:
|
|
237
|
+
* @param {{rows: ReadonlyArray<{tag: string, version: string, verdict: string}>, ignored: readonly string[]}} result As returned by `reconcile`.
|
|
238
238
|
* @returns {string} The report.
|
|
239
239
|
*/
|
|
240
240
|
export function formatReport({ rows, ignored }) {
|
|
@@ -136,7 +136,7 @@ function readNvmrcVersion(): string {
|
|
|
136
136
|
* Extracts the major version from a semver string
|
|
137
137
|
*/
|
|
138
138
|
function getMajorVersion(version: string): string {
|
|
139
|
-
return version.split(".")
|
|
139
|
+
return version.split(".").at(0) ?? version;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/**
|
|
@@ -1666,7 +1666,7 @@ export function parseWaiverTrailer(prBody) {
|
|
|
1666
1666
|
* PR body — a security limit a caller can relax is not a limit.
|
|
1667
1667
|
*
|
|
1668
1668
|
* @param {object} request - `{ labelEvent, prAuthor, prNumber, label, prBody, actorPermission, maxHours, extraReasonPattern, now }`
|
|
1669
|
-
* @returns {{valid: boolean, reason: string, actor: string|null, appliedAt: string|null, expiresAt: string|null, ticket: string|null, detail: string|null}} The decision
|
|
1669
|
+
* @returns {{valid: boolean, reason: string, actor: string|null, appliedAt: string|null, expiresAt: string|null, ticket: string|null, detail: string|null, label: string|null, prAuthor: string|null, prNumber: number|null, actorPermission: string|null}} The decision
|
|
1670
1670
|
*/
|
|
1671
1671
|
export function evaluateBypass(request) {
|
|
1672
1672
|
const {
|
|
@@ -92,14 +92,6 @@ export const FAMILIES = [
|
|
|
92
92
|
match: /(^|\/)\.lisa\.config\.json$/,
|
|
93
93
|
kind: "allow-list",
|
|
94
94
|
},
|
|
95
|
-
{
|
|
96
|
-
// The #3811 quarantine. `allow-list` is exactly right here: the list may
|
|
97
|
-
// shrink freely, and ADDING a file — re-authorising type debt that the
|
|
98
|
-
// gate would otherwise refuse — is the change that needs a human to see it.
|
|
99
|
-
id: "typecheck-quarantine",
|
|
100
|
-
match: /(^|\/)typecheck-quarantine\.json$/,
|
|
101
|
-
kind: "allow-list",
|
|
102
|
-
},
|
|
103
95
|
{
|
|
104
96
|
id: "lighthouse",
|
|
105
97
|
match: /(^|\/)(?:lighthouserc-config|lighthouserc|\.lighthouserc)\.json$/,
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"//": "The program ESLint's type-aware rules read types from. It must resolve what the code really uses, or those rules see `any` and error types. It sets no `types` list, so it inherits the host's own (tsconfig.json, tsconfig.local.json) instead of overriding it; one here would also drop any ambient @types package the host names. This stack runs Vitest with `globals: true`, so `files` adds Vitest's global declarations on top. allowJs without checkJs lets TypeScript files import local .js/.mjs modules with inferred types instead of `any`, without type-checking the JavaScript.",
|
|
2
3
|
"extends": "./tsconfig.json",
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"rootDir": ".",
|
|
5
6
|
"noEmit": true,
|
|
6
7
|
"allowImportingTsExtensions": true,
|
|
7
8
|
"module": "preserve",
|
|
8
|
-
"moduleResolution": "bundler"
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"checkJs": false
|
|
9
12
|
},
|
|
13
|
+
"files": ["node_modules/vitest/globals.d.ts"],
|
|
10
14
|
"include": ["**/*.ts"],
|
|
11
15
|
"exclude": ["node_modules", "dist", "build", "worktrees"]
|
|
12
16
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Jest Configuration - CDK Stack
|
|
3
|
-
*
|
|
4
|
-
* Provides AWS CDK-specific Jest configuration targeting
|
|
5
|
-
* the test/ directory with test/spec and integration-test/integration-spec patterns.
|
|
6
|
-
*
|
|
7
|
-
* Inheritance chain:
|
|
8
|
-
* cdk.ts (this file)
|
|
9
|
-
* └── base.ts
|
|
10
|
-
* @see https://jestjs.io/docs/configuration
|
|
11
|
-
* @module configs/jest/cdk
|
|
12
|
-
*/
|
|
13
|
-
import type { Config } from "jest";
|
|
14
|
-
import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds } from "./base.js";
|
|
15
|
-
export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, };
|
|
16
|
-
/**
|
|
17
|
-
* Options for configuring the CDK Jest config factory.
|
|
18
|
-
*/
|
|
19
|
-
interface CdkJestOptions {
|
|
20
|
-
/** Coverage thresholds (merged defaults + project overrides) */
|
|
21
|
-
readonly thresholds?: Config["coverageThreshold"];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Creates a Jest configuration for AWS CDK projects.
|
|
25
|
-
* @param options - Configuration options for threshold overrides
|
|
26
|
-
* @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
|
|
27
|
-
* @returns Jest config object with ts-jest transform, node environment, and CDK-specific paths
|
|
28
|
-
* @remarks CDK projects typically use CommonJS modules and keep tests in a
|
|
29
|
-
* separate test/ directory. Coverage is collected only from lib/ and util/
|
|
30
|
-
* directories since bin/ contains entry-point code with minimal logic.
|
|
31
|
-
*/
|
|
32
|
-
export declare const getCdkJestConfig: ({ thresholds, }?: CdkJestOptions) => Config;
|
|
33
|
-
//# sourceMappingURL=cdk.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cdk.d.ts","sourceRoot":"","sources":["../../../src/configs/jest/cdk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EAChB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,CAAC;AAEF;;GAEG;AACH,UAAU,cAAc;IACtB,gEAAgE;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC;CACnD;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,GAAI,kBAE9B,cAAmB,KAAG,MAevB,CAAC"}
|
package/dist/configs/jest/cdk.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, } from "./base.js";
|
|
2
|
-
// Re-export base utilities for entry-point configs
|
|
3
|
-
export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, };
|
|
4
|
-
/**
|
|
5
|
-
* Creates a Jest configuration for AWS CDK projects.
|
|
6
|
-
* @param options - Configuration options for threshold overrides
|
|
7
|
-
* @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
|
|
8
|
-
* @returns Jest config object with ts-jest transform, node environment, and CDK-specific paths
|
|
9
|
-
* @remarks CDK projects typically use CommonJS modules and keep tests in a
|
|
10
|
-
* separate test/ directory. Coverage is collected only from lib/ and util/
|
|
11
|
-
* directories since bin/ contains entry-point code with minimal logic.
|
|
12
|
-
*/
|
|
13
|
-
export const getCdkJestConfig = ({ thresholds = defaultThresholds, } = {}) => ({
|
|
14
|
-
testEnvironment: "node",
|
|
15
|
-
roots: ["<rootDir>/test"],
|
|
16
|
-
testRegex: "(.*\\.(test|spec|integration-test|integration-spec)\\.ts)$",
|
|
17
|
-
transform: {
|
|
18
|
-
"^.+\\.ts$": "ts-jest",
|
|
19
|
-
},
|
|
20
|
-
moduleFileExtensions: ["js", "json", "ts"],
|
|
21
|
-
collectCoverageFrom: [
|
|
22
|
-
"lib/**/*.ts",
|
|
23
|
-
"util/**/*.ts",
|
|
24
|
-
...defaultCoverageExclusions,
|
|
25
|
-
],
|
|
26
|
-
...(thresholds !== undefined ? { coverageThreshold: thresholds } : {}),
|
|
27
|
-
testTimeout: 10000,
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=cdk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cdk.js","sourceRoot":"","sources":["../../../src/configs/jest/cdk.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,MAAM,WAAW,CAAC;AAEnB,mDAAmD;AACnD,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,CAAC;AAUF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAC/B,UAAU,GAAG,iBAAiB,MACZ,EAAE,EAAU,EAAE,CAAC,CAAC;IAClC,eAAe,EAAE,MAAM;IACvB,KAAK,EAAE,CAAC,gBAAgB,CAAC;IACzB,SAAS,EAAE,4DAA4D;IACvE,SAAS,EAAE;QACT,WAAW,EAAE,SAAS;KACvB;IACD,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC;IAC1C,mBAAmB,EAAE;QACnB,aAAa;QACb,cAAc;QACd,GAAG,yBAAyB;KAC7B;IACD,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Jest Configuration - NestJS Stack
|
|
3
|
-
*
|
|
4
|
-
* Provides NestJS-specific Jest configuration with extensive coverage
|
|
5
|
-
* exclusions for generated files, DTOs, entities, and modules.
|
|
6
|
-
*
|
|
7
|
-
* Inheritance chain:
|
|
8
|
-
* nestjs.ts (this file)
|
|
9
|
-
* └── base.ts
|
|
10
|
-
* @see https://jestjs.io/docs/configuration
|
|
11
|
-
* @module configs/jest/nestjs
|
|
12
|
-
*/
|
|
13
|
-
import type { Config } from "jest";
|
|
14
|
-
import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds } from "./base.js";
|
|
15
|
-
export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, };
|
|
16
|
-
/**
|
|
17
|
-
* Options for configuring the NestJS Jest config factory.
|
|
18
|
-
*/
|
|
19
|
-
interface NestjsJestOptions {
|
|
20
|
-
/** Coverage thresholds (merged defaults + project overrides) */
|
|
21
|
-
readonly thresholds?: Config["coverageThreshold"];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Creates a Jest configuration for NestJS projects.
|
|
25
|
-
* @param options - Configuration options for threshold overrides
|
|
26
|
-
* @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
|
|
27
|
-
* @returns Jest config object with ts-jest transform, node environment, and NestJS-specific exclusions
|
|
28
|
-
* @remarks NestJS projects use CommonJS modules and spec.ts test file convention.
|
|
29
|
-
* Uses tsconfig.spec.json for ts-jest diagnostics because the main tsconfig.json
|
|
30
|
-
* excludes spec files from compilation — without this, path aliases used only in
|
|
31
|
-
* test files (e.g. @test-utils) fail to resolve during type checking.
|
|
32
|
-
* Coverage excludes entities, DTOs, modules, and other boilerplate files
|
|
33
|
-
* that are better validated through integration tests.
|
|
34
|
-
*/
|
|
35
|
-
export declare const getNestjsJestConfig: ({ thresholds, }?: NestjsJestOptions) => Config;
|
|
36
|
-
//# sourceMappingURL=nestjs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nestjs.d.ts","sourceRoot":"","sources":["../../../src/configs/jest/nestjs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EAChB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,CAAC;AAEF;;GAEG;AACH,UAAU,iBAAiB;IACzB,gEAAgE;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC;CACnD;AAwBD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,GAAI,kBAEjC,iBAAsB,KAAG,MAW1B,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, } from "./base.js";
|
|
2
|
-
// Re-export base utilities for entry-point configs
|
|
3
|
-
export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, };
|
|
4
|
-
/**
|
|
5
|
-
* NestJS-specific patterns excluded from coverage collection.
|
|
6
|
-
* These are generated or boilerplate files that don't benefit from coverage tracking.
|
|
7
|
-
*/
|
|
8
|
-
const nestjsCoverageExclusions = [
|
|
9
|
-
...defaultCoverageExclusions,
|
|
10
|
-
"!**/*.entity.ts",
|
|
11
|
-
"!**/*.dto.ts",
|
|
12
|
-
"!**/*.input.ts",
|
|
13
|
-
"!**/*.args.ts",
|
|
14
|
-
"!**/*.model.ts",
|
|
15
|
-
"!**/*.module.ts",
|
|
16
|
-
"!**/*.factory.ts",
|
|
17
|
-
"!**/*.enum.ts",
|
|
18
|
-
"!**/*.interface.ts",
|
|
19
|
-
"!**/*.constants.ts",
|
|
20
|
-
"!**/database/migrations/**",
|
|
21
|
-
"!**/database/seeds/**",
|
|
22
|
-
"!**/graphql/**",
|
|
23
|
-
"!**/main.ts",
|
|
24
|
-
];
|
|
25
|
-
/**
|
|
26
|
-
* Creates a Jest configuration for NestJS projects.
|
|
27
|
-
* @param options - Configuration options for threshold overrides
|
|
28
|
-
* @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
|
|
29
|
-
* @returns Jest config object with ts-jest transform, node environment, and NestJS-specific exclusions
|
|
30
|
-
* @remarks NestJS projects use CommonJS modules and spec.ts test file convention.
|
|
31
|
-
* Uses tsconfig.spec.json for ts-jest diagnostics because the main tsconfig.json
|
|
32
|
-
* excludes spec files from compilation — without this, path aliases used only in
|
|
33
|
-
* test files (e.g. @test-utils) fail to resolve during type checking.
|
|
34
|
-
* Coverage excludes entities, DTOs, modules, and other boilerplate files
|
|
35
|
-
* that are better validated through integration tests.
|
|
36
|
-
*/
|
|
37
|
-
export const getNestjsJestConfig = ({ thresholds = defaultThresholds, } = {}) => ({
|
|
38
|
-
testEnvironment: "node",
|
|
39
|
-
rootDir: "src",
|
|
40
|
-
testRegex: ".*\\.spec\\.ts$",
|
|
41
|
-
transform: {
|
|
42
|
-
"^.+\\.ts$": ["ts-jest", { tsconfig: "tsconfig.spec.json" }],
|
|
43
|
-
},
|
|
44
|
-
moduleFileExtensions: ["js", "json", "ts"],
|
|
45
|
-
collectCoverageFrom: ["**/*.ts", ...nestjsCoverageExclusions],
|
|
46
|
-
...(thresholds !== undefined ? { coverageThreshold: thresholds } : {}),
|
|
47
|
-
testTimeout: 10000,
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=nestjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nestjs.js","sourceRoot":"","sources":["../../../src/configs/jest/nestjs.ts"],"names":[],"mappings":"AAcA,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,MAAM,WAAW,CAAC;AAEnB,mDAAmD;AACnD,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,GAChB,CAAC;AAUF;;;GAGG;AACH,MAAM,wBAAwB,GAAsB;IAClD,GAAG,yBAAyB;IAC5B,iBAAiB;IACjB,cAAc;IACd,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,oBAAoB;IACpB,oBAAoB;IACpB,4BAA4B;IAC5B,uBAAuB;IACvB,gBAAgB;IAChB,aAAa;CACd,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EAClC,UAAU,GAAG,iBAAiB,MACT,EAAE,EAAU,EAAE,CAAC,CAAC;IACrC,eAAe,EAAE,MAAM;IACvB,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,iBAAiB;IAC5B,SAAS,EAAE;QACT,WAAW,EAAE,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE,CAAC;KAC7D;IACD,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC;IAC1C,mBAAmB,EAAE,CAAC,SAAS,EAAE,GAAG,wBAAwB,CAAC;IAC7D,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Jest Configuration - TypeScript Stack
|
|
3
|
-
*
|
|
4
|
-
* Provides TypeScript/Node-specific Jest configuration.
|
|
5
|
-
* Imports shared utilities from the base module.
|
|
6
|
-
* Stack-specific configs (expo, nestjs, cdk) should import and extend this.
|
|
7
|
-
* @see https://jestjs.io/docs/configuration
|
|
8
|
-
* @module configs/jest/typescript
|
|
9
|
-
*/
|
|
10
|
-
import type { Config } from "jest";
|
|
11
|
-
import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, worktreeTestPathIgnorePatterns } from "./base.js";
|
|
12
|
-
export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, worktreeTestPathIgnorePatterns, };
|
|
13
|
-
/**
|
|
14
|
-
* Options for configuring the TypeScript Jest config factory.
|
|
15
|
-
*/
|
|
16
|
-
interface TypescriptJestOptions {
|
|
17
|
-
/** Coverage thresholds (merged defaults + project overrides) */
|
|
18
|
-
readonly thresholds?: Config["coverageThreshold"];
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Creates a Jest configuration for TypeScript/Node projects using ts-jest.
|
|
22
|
-
* @param options - Configuration options for threshold overrides
|
|
23
|
-
* @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
|
|
24
|
-
* @returns Jest config object with ts-jest transform, ESM support, and coverage settings
|
|
25
|
-
* @remarks Uses ts-jest ESM preset for projects with "type": "module" in package.json.
|
|
26
|
-
* Projects needing CommonJS should override the preset in jest.config.local.ts.
|
|
27
|
-
*/
|
|
28
|
-
export declare const getTypescriptJestConfig: ({ thresholds, }?: TypescriptJestOptions) => Config;
|
|
29
|
-
//# sourceMappingURL=typescript.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../src/configs/jest/typescript.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAEnC,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,8BAA8B,GAC/B,CAAC;AAEF;;GAEG;AACH,UAAU,qBAAqB;IAC7B,gEAAgE;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC;CACnD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAAI,kBAErC,qBAA0B,KAAG,MAwB9B,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, worktreeTestPathIgnorePatterns, } from "./base.js";
|
|
2
|
-
// Re-export base utilities for stack-specific configs to use
|
|
3
|
-
export { defaultCoverageExclusions, defaultThresholds, mergeConfigs, mergeThresholds, worktreeTestPathIgnorePatterns, };
|
|
4
|
-
/**
|
|
5
|
-
* Creates a Jest configuration for TypeScript/Node projects using ts-jest.
|
|
6
|
-
* @param options - Configuration options for threshold overrides
|
|
7
|
-
* @param options.thresholds - Coverage thresholds (merged defaults + project overrides)
|
|
8
|
-
* @returns Jest config object with ts-jest transform, ESM support, and coverage settings
|
|
9
|
-
* @remarks Uses ts-jest ESM preset for projects with "type": "module" in package.json.
|
|
10
|
-
* Projects needing CommonJS should override the preset in jest.config.local.ts.
|
|
11
|
-
*/
|
|
12
|
-
export const getTypescriptJestConfig = ({ thresholds = defaultThresholds, } = {}) => ({
|
|
13
|
-
preset: "ts-jest/presets/default-esm",
|
|
14
|
-
testEnvironment: "node",
|
|
15
|
-
testMatch: ["<rootDir>/tests/**/*.test.ts", "<rootDir>/src/**/*.test.ts"],
|
|
16
|
-
testPathIgnorePatterns: [
|
|
17
|
-
"/node_modules/",
|
|
18
|
-
"/dist/",
|
|
19
|
-
...worktreeTestPathIgnorePatterns(),
|
|
20
|
-
],
|
|
21
|
-
moduleNameMapper: {
|
|
22
|
-
"^(\\.{1,2}/.*)\\.js$": "$1",
|
|
23
|
-
},
|
|
24
|
-
transform: {
|
|
25
|
-
"^.+\\.tsx?$": [
|
|
26
|
-
"ts-jest",
|
|
27
|
-
{
|
|
28
|
-
useESM: true,
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
extensionsToTreatAsEsm: [".ts"],
|
|
33
|
-
collectCoverageFrom: ["src/**/*.ts", ...defaultCoverageExclusions],
|
|
34
|
-
...(thresholds !== undefined ? { coverageThreshold: thresholds } : {}),
|
|
35
|
-
testTimeout: 10000,
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=typescript.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../../src/configs/jest/typescript.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,8BAA8B,GAC/B,MAAM,WAAW,CAAC;AAEnB,6DAA6D;AAC7D,OAAO,EACL,yBAAyB,EACzB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,8BAA8B,GAC/B,CAAC;AAUF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACtC,UAAU,GAAG,iBAAiB,MACL,EAAE,EAAU,EAAE,CAAC,CAAC;IACzC,MAAM,EAAE,6BAA6B;IACrC,eAAe,EAAE,MAAM;IACvB,SAAS,EAAE,CAAC,8BAA8B,EAAE,4BAA4B,CAAC;IACzE,sBAAsB,EAAE;QACtB,gBAAgB;QAChB,QAAQ;QACR,GAAG,8BAA8B,EAAE;KACpC;IACD,gBAAgB,EAAE;QAChB,sBAAsB,EAAE,IAAI;KAC7B;IACD,SAAS,EAAE;QACT,aAAa,EAAE;YACb,SAAS;YACT;gBACE,MAAM,EAAE,IAAI;aACb;SACF;KACF;IACD,sBAAsB,EAAE,CAAC,KAAK,CAAC;IAC/B,mBAAmB,EAAE,CAAC,aAAa,EAAE,GAAG,yBAAyB,CAAC;IAClE,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACtE,WAAW,EAAE,KAAK;CACnB,CAAC,CAAC"}
|