@codeperfect/eslint-plugin 2.1.0 → 2.3.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/README.md +3 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/application/custom-rules.d.ts +8 -8
- package/dist/application/custom-rules.js +14 -14
- package/dist/application/index.d.ts +1 -1
- package/dist/application/index.d.ts.map +1 -1
- package/dist/application/index.js +2 -2
- package/dist/codeperfect-eslint-plugin-1.0.0.tgz +0 -0
- package/dist/domain/architecture/consistent-barrel-files/barrel-file-utilities.d.ts +3 -4
- package/dist/domain/architecture/consistent-barrel-files/barrel-file-utilities.d.ts.map +1 -1
- package/dist/domain/architecture/consistent-barrel-files/barrel-file-utilities.js +5 -3
- package/dist/domain/architecture/consistent-barrel-files/consistent-barrel-files-listeners.d.ts.map +1 -1
- package/dist/domain/architecture/consistent-barrel-files/consistent-barrel-files-listeners.js +17 -7
- package/dist/domain/architecture/consistent-barrel-files/exports-only-rule.d.ts.map +1 -1
- package/dist/domain/architecture/consistent-barrel-files/exports-only-rule.js +29 -2
- package/dist/domain/architecture/consistent-barrel-files/index.d.ts +2 -0
- package/dist/domain/architecture/consistent-barrel-files/index.d.ts.map +1 -1
- package/dist/domain/architecture/consistent-barrel-files/index.js +3 -1
- package/dist/domain/architecture/consistent-barrel-files/no-import-export-aliases-rule.d.ts +5 -0
- package/dist/domain/architecture/consistent-barrel-files/no-import-export-aliases-rule.d.ts.map +1 -0
- package/dist/domain/architecture/consistent-barrel-files/no-import-export-aliases-rule.js +247 -0
- package/dist/domain/architecture/consistent-barrel-files/no-import-export-extensions-rule.d.ts +5 -0
- package/dist/domain/architecture/consistent-barrel-files/no-import-export-extensions-rule.d.ts.map +1 -0
- package/dist/domain/architecture/consistent-barrel-files/no-import-export-extensions-rule.js +136 -0
- package/dist/domain/architecture/consistent-barrel-files/rule.d.ts.map +1 -1
- package/dist/domain/architecture/consistent-barrel-files/rule.js +1 -2
- package/dist/domain/architecture/index.d.ts +2 -1
- package/dist/domain/architecture/index.d.ts.map +1 -1
- package/dist/domain/architecture/index.js +3 -2
- package/dist/domain/architecture/no-unused-exports/index.d.ts +3 -0
- package/dist/domain/architecture/no-unused-exports/index.d.ts.map +1 -0
- package/dist/domain/architecture/no-unused-exports/index.js +2 -0
- package/dist/domain/architecture/no-unused-exports/no-unused-exports-options.d.ts +50 -0
- package/dist/domain/architecture/no-unused-exports/no-unused-exports-options.d.ts.map +1 -0
- package/dist/domain/architecture/no-unused-exports/no-unused-exports-options.js +141 -0
- package/dist/domain/architecture/no-unused-exports/no-unused-exports-utilities.d.ts +49 -0
- package/dist/domain/architecture/no-unused-exports/no-unused-exports-utilities.d.ts.map +1 -0
- package/dist/domain/architecture/no-unused-exports/no-unused-exports-utilities.js +612 -0
- package/dist/domain/architecture/no-unused-exports/rule.d.ts +5 -0
- package/dist/domain/architecture/no-unused-exports/rule.d.ts.map +1 -0
- package/dist/domain/architecture/no-unused-exports/rule.js +82 -0
- package/dist/domain/architecture/no-unused-exports/types.d.ts +32 -0
- package/dist/domain/architecture/no-unused-exports/types.d.ts.map +1 -0
- package/dist/domain/architecture/no-unused-exports/types.js +2 -0
- package/dist/domain/core/no-multiple-declarators/rule.d.ts.map +1 -1
- package/dist/domain/core/no-multiple-declarators/rule.js +53 -4
- package/dist/domain/core/no-multiple-declarators/types.d.ts +3 -1
- package/dist/domain/core/no-multiple-declarators/types.d.ts.map +1 -1
- package/dist/domain/core/no-multiple-declarators/types.js +5 -2
- package/dist/domain/core/prefer-interface-types/rule.d.ts.map +1 -1
- package/dist/domain/core/prefer-interface-types/rule.js +90 -22
- package/dist/domain/custom-rule-documentation.d.ts +1 -14
- package/dist/domain/custom-rule-documentation.d.ts.map +1 -1
- package/dist/domain/custom-rule-documentation.js +2 -2
- package/dist/domain/docs/no-interface-member-docs/comment-utilities.d.ts.map +1 -1
- package/dist/domain/docs/no-interface-member-docs/comment-utilities.js +11 -2
- package/dist/domain/docs/no-interface-member-docs/parameter-tags.d.ts.map +1 -1
- package/dist/domain/docs/no-interface-member-docs/parameter-tags.js +1 -1
- package/dist/domain/docs/no-interface-member-docs/rule.d.ts.map +1 -1
- package/dist/domain/docs/no-interface-member-docs/rule.js +7 -2
- package/dist/domain/docs/require-example-language/examples.d.ts +4 -15
- package/dist/domain/docs/require-example-language/examples.d.ts.map +1 -1
- package/dist/domain/docs/require-example-language/examples.js +119 -26
- package/dist/domain/docs/require-example-language/fixes.d.ts +1 -21
- package/dist/domain/docs/require-example-language/fixes.d.ts.map +1 -1
- package/dist/domain/docs/require-example-language/fixes.js +5 -2
- package/dist/domain/docs/require-example-language/reporting.d.ts +2 -38
- package/dist/domain/docs/require-example-language/reporting.d.ts.map +1 -1
- package/dist/domain/docs/require-example-language/reporting.js +2 -2
- package/dist/domain/docs/require-example-language/rule.d.ts.map +1 -1
- package/dist/domain/docs/require-example-language/rule.js +2 -1
- package/dist/domain/docs/require-example-language/types.d.ts +1 -1
- package/dist/domain/docs/require-example-language/types.d.ts.map +1 -1
- package/dist/domain/docs/require-example-language/types.js +1 -1
- package/dist/domain/docs/single-line-jsdoc/rule.js +8 -8
- package/dist/domain/index.d.ts +2 -3
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js +3 -4
- package/dist/domain/testing/aaa/analyzer.analysis.d.ts +1 -19
- package/dist/domain/testing/aaa/analyzer.analysis.d.ts.map +1 -1
- package/dist/domain/testing/aaa/analyzer.analysis.helpers.d.ts +8 -31
- package/dist/domain/testing/aaa/analyzer.analysis.helpers.d.ts.map +1 -1
- package/dist/domain/testing/aaa/analyzer.analysis.helpers.js +18 -22
- package/dist/domain/testing/aaa/analyzer.analysis.js +46 -39
- package/dist/domain/testing/aaa/analyzer.assertions.d.ts +1 -17
- package/dist/domain/testing/aaa/analyzer.assertions.d.ts.map +1 -1
- package/dist/domain/testing/aaa/analyzer.assertions.helpers.d.ts +1 -3
- package/dist/domain/testing/aaa/analyzer.assertions.helpers.d.ts.map +1 -1
- package/dist/domain/testing/aaa/analyzer.assertions.helpers.js +3 -4
- package/dist/domain/testing/aaa/analyzer.assertions.js +5 -33
- package/dist/domain/testing/aaa/analyzer.assertions.operands.d.ts +1 -3
- package/dist/domain/testing/aaa/analyzer.assertions.operands.d.ts.map +1 -1
- package/dist/domain/testing/aaa/analyzer.assertions.operands.js +6 -5
- package/dist/domain/testing/aaa/analyzer.classification.d.ts +1 -15
- package/dist/domain/testing/aaa/analyzer.classification.d.ts.map +1 -1
- package/dist/domain/testing/aaa/analyzer.classification.helpers.d.ts +1 -3
- package/dist/domain/testing/aaa/analyzer.classification.helpers.d.ts.map +1 -1
- package/dist/domain/testing/aaa/analyzer.classification.helpers.js +5 -6
- package/dist/domain/testing/aaa/analyzer.classification.js +5 -31
- package/dist/domain/testing/aaa/analyzer.classification.traversal.d.ts +1 -3
- package/dist/domain/testing/aaa/analyzer.classification.traversal.d.ts.map +1 -1
- package/dist/domain/testing/aaa/analyzer.classification.traversal.js +3 -5
- package/dist/domain/testing/aaa/analyzer.super.d.ts +1 -7
- package/dist/domain/testing/aaa/analyzer.super.d.ts.map +1 -1
- package/dist/domain/testing/aaa/analyzer.super.helpers.d.ts +1 -14
- package/dist/domain/testing/aaa/analyzer.super.helpers.d.ts.map +1 -1
- package/dist/domain/testing/aaa/analyzer.super.helpers.js +2 -4
- package/dist/domain/testing/aaa/analyzer.super.js +5 -20
- package/dist/domain/testing/aaa/index.d.ts +1 -2
- package/dist/domain/testing/aaa/index.d.ts.map +1 -1
- package/dist/domain/testing/aaa/index.js +2 -2
- package/dist/domain/testing/aaa/types.d.ts +1 -1
- package/dist/domain/testing/aaa/types.d.ts.map +1 -1
- package/dist/domain/testing/aaa/types.js +1 -1
- package/dist/domain/testing/assert-actual-expected-names/rule.d.ts.map +1 -1
- package/dist/domain/testing/assert-actual-expected-names/rule.js +28 -3
- package/dist/domain/testing/enforce-aaa-phase-purity/index.d.ts +2 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/index.d.ts.map +1 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/index.js +3 -2
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-identifiers.d.ts +1 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-identifiers.d.ts.map +1 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-identifiers.js +1 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.d.ts +1 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.d.ts.map +1 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.js +78 -16
- package/dist/domain/testing/{require-aaa-sections → enforce-aaa-structure}/missing-section-fixes.d.ts +1 -1
- package/dist/domain/testing/enforce-aaa-structure/missing-section-fixes.d.ts.map +1 -0
- package/dist/domain/testing/enforce-aaa-structure/missing-section-fixes.js +150 -0
- package/dist/domain/testing/enforce-aaa-structure/rule.d.ts.map +1 -1
- package/dist/domain/testing/enforce-aaa-structure/rule.js +166 -7
- package/dist/domain/testing/index.d.ts +0 -3
- package/dist/domain/testing/index.d.ts.map +1 -1
- package/dist/domain/testing/index.js +1 -4
- package/dist/domain/testing/prefer-vi-mocked-import/fix-import-statements.d.ts +1 -15
- package/dist/domain/testing/prefer-vi-mocked-import/fix-import-statements.d.ts.map +1 -1
- package/dist/domain/testing/prefer-vi-mocked-import/fix-import-statements.js +2 -71
- package/dist/domain/testing/prefer-vi-mocked-import/fix-imports.d.ts.map +1 -1
- package/dist/domain/testing/prefer-vi-mocked-import/fix-imports.js +4 -2
- package/dist/domain/testing/prefer-vi-mocked-import/fix.d.ts +1 -13
- package/dist/domain/testing/prefer-vi-mocked-import/fix.d.ts.map +1 -1
- package/dist/domain/testing/prefer-vi-mocked-import/fix.js +3 -21
- package/dist/domain/testing/prefer-vi-mocked-import/match-bindings.d.ts.map +1 -1
- package/dist/domain/testing/prefer-vi-mocked-import/match-bindings.js +2 -1
- package/dist/domain/testing/prefer-vi-mocked-import/match-declarations.d.ts.map +1 -1
- package/dist/domain/testing/prefer-vi-mocked-import/match-declarations.js +1 -1
- package/dist/domain/testing/prefer-vi-mocked-import/match-rewrites.js +6 -6
- package/dist/domain/testing/prefer-vi-mocked-import/match.d.ts +1 -12
- package/dist/domain/testing/prefer-vi-mocked-import/match.d.ts.map +1 -1
- package/dist/domain/testing/prefer-vi-mocked-import/match.js +149 -15
- package/dist/domain/testing/require-act-result-capture/rule.d.ts.map +1 -1
- package/dist/domain/testing/require-act-result-capture/rule.js +37 -8
- package/dist/domain/testing/require-test-companion/index.d.ts +0 -1
- package/dist/domain/testing/require-test-companion/index.d.ts.map +1 -1
- package/dist/domain/testing/require-test-companion/index.js +1 -2
- package/dist/domain/testing/require-test-companion/require-test-companion-listeners.d.ts +2 -1
- package/dist/domain/testing/require-test-companion/require-test-companion-listeners.d.ts.map +1 -1
- package/dist/domain/testing/require-test-companion/require-test-companion-listeners.js +13 -58
- package/dist/domain/testing/require-test-companion/require-test-companion-options.d.ts +2 -1
- package/dist/domain/testing/require-test-companion/require-test-companion-options.d.ts.map +1 -1
- package/dist/domain/testing/require-test-companion/require-test-companion-options.js +6 -5
- package/dist/domain/testing/require-test-companion/rule.d.ts.map +1 -1
- package/dist/domain/testing/require-test-companion/rule.js +7 -7
- package/dist/domain/testing/single-act-statement/rule.d.ts.map +1 -1
- package/dist/domain/testing/single-act-statement/rule.js +6 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/infrastructure/codeperfect-plugin.d.ts +6 -6
- package/dist/infrastructure/codeperfect-plugin.js +5 -5
- package/dist/infrastructure/presets.d.ts.map +1 -1
- package/dist/infrastructure/presets.js +23 -7
- package/package.json +24 -31
- package/dist/domain/architecture/consistent-barrel-files/exports-only-rule-test-utilities.d.ts +0 -41
- package/dist/domain/architecture/consistent-barrel-files/exports-only-rule-test-utilities.d.ts.map +0 -1
- package/dist/domain/architecture/consistent-barrel-files/exports-only-rule-test-utilities.js +0 -87
- package/dist/domain/architecture/consistent-barrel-files/no-reexports-outside-barrels-test-utilities.d.ts +0 -40
- package/dist/domain/architecture/consistent-barrel-files/no-reexports-outside-barrels-test-utilities.d.ts.map +0 -1
- package/dist/domain/architecture/consistent-barrel-files/no-reexports-outside-barrels-test-utilities.js +0 -91
- package/dist/domain/architecture/consistent-barrel-files/rule.repeat-runs.d.ts +0 -4
- package/dist/domain/architecture/consistent-barrel-files/rule.repeat-runs.d.ts.map +0 -1
- package/dist/domain/architecture/consistent-barrel-files/rule.repeat-runs.js +0 -4
- package/dist/domain/architecture/consistent-barrel-files/test-helpers.d.ts +0 -141
- package/dist/domain/architecture/consistent-barrel-files/test-helpers.d.ts.map +0 -1
- package/dist/domain/architecture/consistent-barrel-files/test-helpers.file-writers.d.ts +0 -20
- package/dist/domain/architecture/consistent-barrel-files/test-helpers.file-writers.d.ts.map +0 -1
- package/dist/domain/architecture/consistent-barrel-files/test-helpers.file-writers.js +0 -25
- package/dist/domain/architecture/consistent-barrel-files/test-helpers.js +0 -235
- package/dist/domain/core/no-multiple-declarators/rule-test-helpers.d.ts +0 -101
- package/dist/domain/core/no-multiple-declarators/rule-test-helpers.d.ts.map +0 -1
- package/dist/domain/core/no-multiple-declarators/rule-test-helpers.js +0 -108
- package/dist/domain/core/no-multiple-declarators/rule.fixes.d.ts +0 -35
- package/dist/domain/core/no-multiple-declarators/rule.fixes.d.ts.map +0 -1
- package/dist/domain/core/no-multiple-declarators/rule.fixes.js +0 -95
- package/dist/domain/core/no-multiple-declarators/rule.guardrails.d.ts +0 -4
- package/dist/domain/core/no-multiple-declarators/rule.guardrails.d.ts.map +0 -1
- package/dist/domain/core/no-multiple-declarators/rule.guardrails.js +0 -4
- package/dist/domain/core/no-multiple-declarators/rule.mocked-types.d.ts +0 -4
- package/dist/domain/core/no-multiple-declarators/rule.mocked-types.d.ts.map +0 -1
- package/dist/domain/core/no-multiple-declarators/rule.mocked-types.js +0 -4
- package/dist/domain/core/prefer-interface-types/test-helpers.d.ts +0 -110
- package/dist/domain/core/prefer-interface-types/test-helpers.d.ts.map +0 -1
- package/dist/domain/core/prefer-interface-types/test-helpers.js +0 -116
- package/dist/domain/docs/no-interface-member-docs/comment-utilities-test-helpers.d.ts +0 -89
- package/dist/domain/docs/no-interface-member-docs/comment-utilities-test-helpers.d.ts.map +0 -1
- package/dist/domain/docs/no-interface-member-docs/comment-utilities-test-helpers.js +0 -129
- package/dist/domain/docs/no-interface-member-docs/test-helpers.d.ts +0 -103
- package/dist/domain/docs/no-interface-member-docs/test-helpers.d.ts.map +0 -1
- package/dist/domain/docs/no-interface-member-docs/test-helpers.js +0 -157
- package/dist/domain/docs/require-example-language/create-fixer.d.ts +0 -5
- package/dist/domain/docs/require-example-language/create-fixer.d.ts.map +0 -1
- package/dist/domain/docs/require-example-language/create-fixer.js +0 -5
- package/dist/domain/docs/single-line-jsdoc/rule.edge-cases.d.ts +0 -4
- package/dist/domain/docs/single-line-jsdoc/rule.edge-cases.d.ts.map +0 -1
- package/dist/domain/docs/single-line-jsdoc/rule.edge-cases.js +0 -5
- package/dist/domain/docs/single-line-jsdoc/rule.node-lookups.d.ts +0 -4
- package/dist/domain/docs/single-line-jsdoc/rule.node-lookups.d.ts.map +0 -1
- package/dist/domain/docs/single-line-jsdoc/rule.node-lookups.js +0 -5
- package/dist/domain/docs/test-helpers.d.ts +0 -50
- package/dist/domain/docs/test-helpers.d.ts.map +0 -1
- package/dist/domain/docs/test-helpers.js +0 -107
- package/dist/domain/testing/aaa/analyzer.analysis.unsupported.d.ts +0 -4
- package/dist/domain/testing/aaa/analyzer.analysis.unsupported.d.ts.map +0 -1
- package/dist/domain/testing/aaa/analyzer.analysis.unsupported.js +0 -4
- package/dist/domain/testing/aaa/analyzer.assertions.destructured.d.ts +0 -4
- package/dist/domain/testing/aaa/analyzer.assertions.destructured.d.ts.map +0 -1
- package/dist/domain/testing/aaa/analyzer.assertions.destructured.js +0 -4
- package/dist/domain/testing/aaa/analyzer.classification.member-patterns.d.ts +0 -9
- package/dist/domain/testing/aaa/analyzer.classification.member-patterns.d.ts.map +0 -1
- package/dist/domain/testing/aaa/analyzer.classification.member-patterns.js +0 -10
- package/dist/domain/testing/aaa/analyzer.classification.mutations.d.ts +0 -4
- package/dist/domain/testing/aaa/analyzer.classification.mutations.d.ts.map +0 -1
- package/dist/domain/testing/aaa/analyzer.classification.mutations.js +0 -4
- package/dist/domain/testing/aaa/analyzer.d.ts +0 -46
- package/dist/domain/testing/aaa/analyzer.d.ts.map +0 -1
- package/dist/domain/testing/aaa/analyzer.js +0 -59
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.combined.d.ts +0 -4
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.combined.d.ts.map +0 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.combined.js +0 -4
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.companion.d.ts +0 -4
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.companion.d.ts.map +0 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.companion.js +0 -4
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.d.ts +0 -4
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.d.ts.map +0 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.js +0 -4
- package/dist/domain/testing/enforce-aaa-phase-purity/rule-test-helpers.d.ts +0 -42
- package/dist/domain/testing/enforce-aaa-phase-purity/rule-test-helpers.d.ts.map +0 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/rule-test-helpers.js +0 -188
- package/dist/domain/testing/enforce-aaa-phase-purity/rule.d.ts +0 -5
- package/dist/domain/testing/enforce-aaa-phase-purity/rule.d.ts.map +0 -1
- package/dist/domain/testing/enforce-aaa-phase-purity/rule.js +0 -37
- package/dist/domain/testing/prefer-vi-mocked-import/rule-test-helpers.d.ts +0 -20
- package/dist/domain/testing/prefer-vi-mocked-import/rule-test-helpers.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vi-mocked-import/rule-test-helpers.js +0 -39
- package/dist/domain/testing/prefer-vitest-incremental-casts/ast-helpers.d.ts +0 -97
- package/dist/domain/testing/prefer-vitest-incremental-casts/ast-helpers.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/ast-helpers.js +0 -174
- package/dist/domain/testing/prefer-vitest-incremental-casts/index.d.ts +0 -2
- package/dist/domain/testing/prefer-vitest-incremental-casts/index.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/index.js +0 -2
- package/dist/domain/testing/prefer-vitest-incremental-casts/match-input.d.ts +0 -14
- package/dist/domain/testing/prefer-vitest-incremental-casts/match-input.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/match-input.js +0 -84
- package/dist/domain/testing/prefer-vitest-incremental-casts/match.d.ts +0 -13
- package/dist/domain/testing/prefer-vitest-incremental-casts/match.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/match.js +0 -195
- package/dist/domain/testing/prefer-vitest-incremental-casts/replacement-helpers.d.ts +0 -25
- package/dist/domain/testing/prefer-vitest-incremental-casts/replacement-helpers.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/replacement-helpers.js +0 -96
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule-test-helpers.d.ts +0 -32
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule-test-helpers.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule-test-helpers.js +0 -164
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.d.ts +0 -5
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.guardrails.d.ts +0 -4
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.guardrails.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.guardrails.js +0 -4
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.input-shapes.d.ts +0 -4
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.input-shapes.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.input-shapes.js +0 -4
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.js +0 -88
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.signature-fallback.d.ts +0 -4
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.signature-fallback.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/rule.signature-fallback.js +0 -4
- package/dist/domain/testing/prefer-vitest-incremental-casts/type-helpers.d.ts +0 -24
- package/dist/domain/testing/prefer-vitest-incremental-casts/type-helpers.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/type-helpers.js +0 -113
- package/dist/domain/testing/prefer-vitest-incremental-casts/type-shape-helpers.d.ts +0 -36
- package/dist/domain/testing/prefer-vitest-incremental-casts/type-shape-helpers.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/type-shape-helpers.js +0 -138
- package/dist/domain/testing/prefer-vitest-incremental-casts/types.d.ts +0 -187
- package/dist/domain/testing/prefer-vitest-incremental-casts/types.d.ts.map +0 -1
- package/dist/domain/testing/prefer-vitest-incremental-casts/types.js +0 -2
- package/dist/domain/testing/require-aaa-sections/index.d.ts +0 -2
- package/dist/domain/testing/require-aaa-sections/index.d.ts.map +0 -1
- package/dist/domain/testing/require-aaa-sections/index.js +0 -2
- package/dist/domain/testing/require-aaa-sections/missing-section-fixes.d.ts.map +0 -1
- package/dist/domain/testing/require-aaa-sections/missing-section-fixes.js +0 -150
- package/dist/domain/testing/require-aaa-sections/rule.d.ts +0 -5
- package/dist/domain/testing/require-aaa-sections/rule.d.ts.map +0 -1
- package/dist/domain/testing/require-aaa-sections/rule.js +0 -134
- package/dist/domain/testing/require-aaa-sections/rule.reporting.d.ts +0 -104
- package/dist/domain/testing/require-aaa-sections/rule.reporting.d.ts.map +0 -1
- package/dist/domain/testing/require-aaa-sections/rule.reporting.js +0 -216
- package/dist/domain/testing/require-test-companion/require-test-companion-test-helpers.d.ts +0 -51
- package/dist/domain/testing/require-test-companion/require-test-companion-test-helpers.d.ts.map +0 -1
- package/dist/domain/testing/require-test-companion/require-test-companion-test-helpers.js +0 -184
- package/dist/domain/testing/require-test-companion/require-test-companion-utilities.d.ts +0 -28
- package/dist/domain/testing/require-test-companion/require-test-companion-utilities.d.ts.map +0 -1
- package/dist/domain/testing/require-test-companion/require-test-companion-utilities.js +0 -26
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates createFixer.
|
|
3
|
-
* @returns Return value output.
|
|
4
|
-
* @example
|
|
5
|
-
* ```typescript
|
|
6
|
-
* createFixer();
|
|
7
|
-
* ```
|
|
8
|
-
*/
|
|
9
|
-
const createFixer = () => ({
|
|
10
|
-
insertTextAfter: (syntaxElement, text) => {
|
|
11
|
-
void syntaxElement;
|
|
12
|
-
return { range: [0, 0], text };
|
|
13
|
-
},
|
|
14
|
-
insertTextAfterRange: (range, text) => ({ range, text }),
|
|
15
|
-
insertTextBefore: (syntaxElement, text) => {
|
|
16
|
-
void syntaxElement;
|
|
17
|
-
return { range: [0, 0], text };
|
|
18
|
-
},
|
|
19
|
-
insertTextBeforeRange: (range, text) => ({ range, text }),
|
|
20
|
-
remove: (syntaxElement) => {
|
|
21
|
-
void syntaxElement;
|
|
22
|
-
return { range: [0, 0], text: "" };
|
|
23
|
-
},
|
|
24
|
-
removeRange: (range) => ({ range, text: "" }),
|
|
25
|
-
replaceText: (syntaxElement, text) => {
|
|
26
|
-
void syntaxElement;
|
|
27
|
-
return { range: [0, 0], text };
|
|
28
|
-
},
|
|
29
|
-
replaceTextRange: (range, text) => ({ range, text }),
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* Checks isFixIterable.
|
|
33
|
-
* @param fixResult Input fixResult value.
|
|
34
|
-
* @returns Return value output.
|
|
35
|
-
* @example
|
|
36
|
-
* ```typescript
|
|
37
|
-
* isFixIterable();
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
const isFixIterable = (fixResult) => Symbol.iterator in fixResult;
|
|
41
|
-
/**
|
|
42
|
-
* Gets getFixText.
|
|
43
|
-
* @param fixResult Input fixResult value.
|
|
44
|
-
* @returns Return value output.
|
|
45
|
-
* @example
|
|
46
|
-
* ```typescript
|
|
47
|
-
* getFixText();
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
const getFixText = (fixResult) => {
|
|
51
|
-
if (fixResult === void 0) {
|
|
52
|
-
return void 0;
|
|
53
|
-
}
|
|
54
|
-
if (isFixIterable(fixResult)) {
|
|
55
|
-
return [...fixResult][0]?.text;
|
|
56
|
-
}
|
|
57
|
-
return fixResult.text;
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Gets getFixes.
|
|
61
|
-
* @param reports Input reports value.
|
|
62
|
-
* @returns Return value output.
|
|
63
|
-
* @example
|
|
64
|
-
* ```typescript
|
|
65
|
-
* getFixes();
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
const getFixes = (reports) => {
|
|
69
|
-
const fixer = createFixer();
|
|
70
|
-
const fixes = [];
|
|
71
|
-
for (const report of reports) {
|
|
72
|
-
const fixResult = report.fix?.(fixer) ?? void 0;
|
|
73
|
-
if (fixResult !== void 0) {
|
|
74
|
-
if (isFixIterable(fixResult)) {
|
|
75
|
-
fixes.push(...fixResult);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
fixes.push(fixResult);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return fixes;
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Applies applyFixes.
|
|
86
|
-
* @param sourceText Input sourceText value.
|
|
87
|
-
* @param fixes Input fixes value.
|
|
88
|
-
* @returns Return value output.
|
|
89
|
-
* @example
|
|
90
|
-
* ```typescript
|
|
91
|
-
* applyFixes();
|
|
92
|
-
* ```
|
|
93
|
-
*/
|
|
94
|
-
const applyFixes = (sourceText, fixes) => {
|
|
95
|
-
const sorted = fixes.toSorted((left, right) => right.range[0] - left.range[0]);
|
|
96
|
-
let output = sourceText;
|
|
97
|
-
for (const fix of sorted) {
|
|
98
|
-
output = [
|
|
99
|
-
output.slice(0, fix.range[0]),
|
|
100
|
-
fix.text,
|
|
101
|
-
output.slice(fix.range[1]),
|
|
102
|
-
].join("");
|
|
103
|
-
}
|
|
104
|
-
return output;
|
|
105
|
-
};
|
|
106
|
-
export { applyFixes, createFixer, getFixes, getFixText };
|
|
107
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC1oZWxwZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2RvbWFpbi9kb2NzL3Rlc3QtaGVscGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFXQTs7Ozs7OztHQU9HO0FBQ0gsTUFBTSxXQUFXLEdBQUcsR0FBb0MsRUFBRSxDQUFDLENBQUM7SUFDMUQsZUFBZSxFQUFFLENBQUMsYUFBYSxFQUFFLElBQUksRUFBWSxFQUFFO1FBQ2pELEtBQUssYUFBYSxDQUFDO1FBQ25CLE9BQU8sRUFBRSxLQUFLLEVBQUUsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLEVBQUUsSUFBSSxFQUFFLENBQUM7SUFDakMsQ0FBQztJQUNELG9CQUFvQixFQUFFLENBQUMsS0FBSyxFQUFFLElBQUksRUFBWSxFQUFFLENBQUMsQ0FBQyxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUUsQ0FBQztJQUNsRSxnQkFBZ0IsR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YW0gc291cmNlVGV4dCBJbnB1dCBzb3VyY2VUZXh0IHZhbHVlLlxuICogQHBhcmFtIGZpeGVzIElucHV0IGZpeGVzIHZhbHVlLlxuICogQHJldHVybnMgUmV0dXJuIHZhbHVlIG91dHB1dC5cbiAqIEBleGFtcGxlXG4gKiBgYGB0eXBlc2NyaXB0XG4gKiBhcHBseUZpeGVzKCk7XG4gKiBgYGBcbiAqL1xuY29uc3QgYXBwbHlGaXhlcyA9IChzb3VyY2VUZXh0OiBzdHJpbmcsIGZpeGVzOiBSdWxlLkZpeFtdKTogc3RyaW5nID0+IHtcbiAgY29uc3Qgc29ydGVkID0gZml4ZXMudG9Tb3J0ZWQoXG4gICAgKGxlZnQsIHJpZ2h0KSA9PiByaWdodC5yYW5nZVswXSAtIGxlZnQucmFuZ2VbMF0sXG4gICk7XG5cbiAgbGV0IG91dHB1dCA9IHNvdXJjZVRleHQ7XG5cbiAgZm9yIChjb25zdCBmaXggb2Ygc29ydGVkKSB7XG4gICAgb3V0cHV0ID0gW1xuICAgICAgb3V0cHV0LnNsaWNlKDAsIGZpeC5yYW5nZVswXSksXG4gICAgICBmaXgudGV4dCxcbiAgICAgIG91dHB1dC5zbGljZShmaXgucmFuZ2VbMV0pLFxuICAgIF0uam9pbihcIlwiKTtcbiAgfVxuXG4gIHJldHVybiBvdXRwdXQ7XG59O1xuXG5leHBvcnQgeyBhcHBseUZpeGVzLCBjcmVhdGVGaXhlciwgZ2V0Rml4ZXMsIGdldEZpeFRleHQgfTtcbiJdfQ==
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analyzer.analysis.unsupported.d.ts","sourceRoot":"","sources":["../../../../src/domain/testing/aaa/analyzer.analysis.unsupported.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,QAAA,MAAM,oCAAoC,EAAG,IAAa,CAAC;AAE3D,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Companion module for unsupported analysis spec coverage. */
|
|
2
|
-
const analyzerAnalysisUnsupportedCompanion = true;
|
|
3
|
-
export { analyzerAnalysisUnsupportedCompanion };
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5hbHl6ZXIuYW5hbHlzaXMudW5zdXBwb3J0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZG9tYWluL3Rlc3RpbmcvYWFhL2FuYWx5emVyLmFuYWx5c2lzLnVuc3VwcG9ydGVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLCtEQUErRDtBQUMvRCxNQUFNLG9DQUFvQyxHQUFHLElBQWEsQ0FBQztBQUUzRCxPQUFPLEVBQUUsb0NBQW9DLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBDb21wYW5pb24gbW9kdWxlIGZvciB1bnN1cHBvcnRlZCBhbmFseXNpcyBzcGVjIGNvdmVyYWdlLiAqL1xyXG5jb25zdCBhbmFseXplckFuYWx5c2lzVW5zdXBwb3J0ZWRDb21wYW5pb24gPSB0cnVlIGFzIGNvbnN0O1xyXG5cclxuZXhwb3J0IHsgYW5hbHl6ZXJBbmFseXNpc1Vuc3VwcG9ydGVkQ29tcGFuaW9uIH07XHJcbiJdfQ==
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analyzer.assertions.destructured.d.ts","sourceRoot":"","sources":["../../../../src/domain/testing/aaa/analyzer.assertions.destructured.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,QAAA,MAAM,uCAAuC,EAAG,IAAa,CAAC;AAE9D,OAAO,EAAE,uCAAuC,EAAE,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Companion module for destructured assertion declaration spec coverage. */
|
|
2
|
-
const analyzerAssertionsDestructuredCompanion = true;
|
|
3
|
-
export { analyzerAssertionsDestructuredCompanion };
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5hbHl6ZXIuYXNzZXJ0aW9ucy5kZXN0cnVjdHVyZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZG9tYWluL3Rlc3RpbmcvYWFhL2FuYWx5emVyLmFzc2VydGlvbnMuZGVzdHJ1Y3R1cmVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZFQUE2RTtBQUM3RSxNQUFNLHVDQUF1QyxHQUFHLElBQWEsQ0FBQztBQUU5RCxPQUFPLEVBQUUsdUNBQXVDLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBDb21wYW5pb24gbW9kdWxlIGZvciBkZXN0cnVjdHVyZWQgYXNzZXJ0aW9uIGRlY2xhcmF0aW9uIHNwZWMgY292ZXJhZ2UuICovXHJcbmNvbnN0IGFuYWx5emVyQXNzZXJ0aW9uc0Rlc3RydWN0dXJlZENvbXBhbmlvbiA9IHRydWUgYXMgY29uc3Q7XHJcblxyXG5leHBvcnQgeyBhbmFseXplckFzc2VydGlvbnNEZXN0cnVjdHVyZWRDb21wYW5pb24gfTtcclxuIl19
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Companion exports for analyzer classification member-pattern tests. */
|
|
2
|
-
declare const analyzerClassificationMemberPatterns: {
|
|
3
|
-
hasAssertion: (statement: import("estree").Statement) => boolean;
|
|
4
|
-
hasCapturableActResult: (statement: import("estree").Statement) => boolean;
|
|
5
|
-
isMeaningfulActStatement: (statement: import("estree").Statement) => boolean;
|
|
6
|
-
isSetupLikeStatement: (statement: import("estree").Statement) => boolean;
|
|
7
|
-
};
|
|
8
|
-
export { analyzerClassificationMemberPatterns };
|
|
9
|
-
//# sourceMappingURL=analyzer.classification.member-patterns.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analyzer.classification.member-patterns.d.ts","sourceRoot":"","sources":["../../../../src/domain/testing/aaa/analyzer.classification.member-patterns.ts"],"names":[],"mappings":"AAOA,0EAA0E;AAC1E,QAAA,MAAM,oCAAoC;;;;;CAKzC,CAAC;AAEF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { hasAssertion, hasCapturableActResult, isMeaningfulActStatement, isSetupLikeStatement, } from "./analyzer.js";
|
|
2
|
-
/** Companion exports for analyzer classification member-pattern tests. */
|
|
3
|
-
const analyzerClassificationMemberPatterns = {
|
|
4
|
-
hasAssertion,
|
|
5
|
-
hasCapturableActResult,
|
|
6
|
-
isMeaningfulActStatement,
|
|
7
|
-
isSetupLikeStatement,
|
|
8
|
-
};
|
|
9
|
-
export { analyzerClassificationMemberPatterns };
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5hbHl6ZXIuY2xhc3NpZmljYXRpb24ubWVtYmVyLXBhdHRlcm5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2RvbWFpbi90ZXN0aW5nL2FhYS9hbmFseXplci5jbGFzc2lmaWNhdGlvbi5tZW1iZXItcGF0dGVybnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLFlBQVksRUFDWixzQkFBc0IsRUFDdEIsd0JBQXdCLEVBQ3hCLG9CQUFvQixHQUNyQixNQUFNLFlBQVksQ0FBQztBQUVwQiwwRUFBMEU7QUFDMUUsTUFBTSxvQ0FBb0MsR0FBRztJQUMzQyxZQUFZO0lBQ1osc0JBQXNCO0lBQ3RCLHdCQUF3QjtJQUN4QixvQkFBb0I7Q0FDckIsQ0FBQztBQUVGLE9BQU8sRUFBRSxvQ0FBb0MsRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcclxuICBoYXNBc3NlcnRpb24sXHJcbiAgaGFzQ2FwdHVyYWJsZUFjdFJlc3VsdCxcclxuICBpc01lYW5pbmdmdWxBY3RTdGF0ZW1lbnQsXHJcbiAgaXNTZXR1cExpa2VTdGF0ZW1lbnQsXHJcbn0gZnJvbSBcIi4vYW5hbHl6ZXJcIjtcclxuXHJcbi8qKiBDb21wYW5pb24gZXhwb3J0cyBmb3IgYW5hbHl6ZXIgY2xhc3NpZmljYXRpb24gbWVtYmVyLXBhdHRlcm4gdGVzdHMuICovXHJcbmNvbnN0IGFuYWx5emVyQ2xhc3NpZmljYXRpb25NZW1iZXJQYXR0ZXJucyA9IHtcclxuICBoYXNBc3NlcnRpb24sXHJcbiAgaGFzQ2FwdHVyYWJsZUFjdFJlc3VsdCxcclxuICBpc01lYW5pbmdmdWxBY3RTdGF0ZW1lbnQsXHJcbiAgaXNTZXR1cExpa2VTdGF0ZW1lbnQsXHJcbn07XHJcblxyXG5leHBvcnQgeyBhbmFseXplckNsYXNzaWZpY2F0aW9uTWVtYmVyUGF0dGVybnMgfTtcclxuIl19
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analyzer.classification.mutations.d.ts","sourceRoot":"","sources":["../../../../src/domain/testing/aaa/analyzer.classification.mutations.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,QAAA,MAAM,wCAAwC,EAAG,IAAa,CAAC;AAE/D,OAAO,EAAE,wCAAwC,EAAE,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Companion module for classification mutation spec coverage. */
|
|
2
|
-
const analyzerClassificationMutationsCompanion = true;
|
|
3
|
-
export { analyzerClassificationMutationsCompanion };
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5hbHl6ZXIuY2xhc3NpZmljYXRpb24ubXV0YXRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2RvbWFpbi90ZXN0aW5nL2FhYS9hbmFseXplci5jbGFzc2lmaWNhdGlvbi5tdXRhdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsa0VBQWtFO0FBQ2xFLE1BQU0sd0NBQXdDLEdBQUcsSUFBYSxDQUFDO0FBRS9ELE9BQU8sRUFBRSx3Q0FBd0MsRUFBRSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqIENvbXBhbmlvbiBtb2R1bGUgZm9yIGNsYXNzaWZpY2F0aW9uIG11dGF0aW9uIHNwZWMgY292ZXJhZ2UuICovXHJcbmNvbnN0IGFuYWx5emVyQ2xhc3NpZmljYXRpb25NdXRhdGlvbnNDb21wYW5pb24gPSB0cnVlIGFzIGNvbnN0O1xyXG5cclxuZXhwb3J0IHsgYW5hbHl6ZXJDbGFzc2lmaWNhdGlvbk11dGF0aW9uc0NvbXBhbmlvbiB9O1xyXG4iXX0=
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/** Canonical ordering used when comparing AAA phases. */
|
|
2
|
-
declare const aaaPhaseOrder: {
|
|
3
|
-
readonly Act: 1;
|
|
4
|
-
readonly Arrange: 0;
|
|
5
|
-
readonly Assert: 2;
|
|
6
|
-
};
|
|
7
|
-
/** Analyzes a supported `it` or `test` callback for AAA sections. */
|
|
8
|
-
declare const analyzeTestBlock: (context: import("eslint").Rule.RuleContext, node: import("estree").CallExpression) => import("./types.js").TestBlockAnalysis | undefined;
|
|
9
|
-
/** Counts statement forms that should be treated as Act steps. */
|
|
10
|
-
declare const countActStatements: (analysis: import("./types.js").TestBlockAnalysis) => number;
|
|
11
|
-
/** Collects identifiers declared inside Assert sections. */
|
|
12
|
-
declare const getAssertDeclaredIdentifiers: (analysis: import("./types.js").TestBlockAnalysis) => Map<string, import("./types.js").LocatedNode<import("estree").Identifier>>;
|
|
13
|
-
/** Extracts `actual` and `expected` identifiers from assertion statements. */
|
|
14
|
-
declare const getAssertionIdentifiers: (statement: import("estree").Statement) => import("./analyzer.assertions.helpers.js").AssertionIdentifiers;
|
|
15
|
-
/** Flattens section comments into one entry per resolved phase. */
|
|
16
|
-
declare const getFlattenedSections: (analysis: Pick<import("./types.js").TestBlockAnalysis, "sectionComments">) => import("./analyzer.analysis.helpers.js").FlattenedSection[];
|
|
17
|
-
/** Returns the indentation prefix that appears before a given offset. */
|
|
18
|
-
declare const getIndentationAtOffset: (sourceText: string, offset: number) => string;
|
|
19
|
-
/** Resolves the starting range for a specific source line. */
|
|
20
|
-
declare const getLineStartRange: (sourceText: string, line: number) => [number, number];
|
|
21
|
-
/** Filters section comments down to phase boundaries that matter after Arrange. */
|
|
22
|
-
declare const getPhaseBoundaryComments: (analysis: Pick<import("./types.js").TestBlockAnalysis, "sectionComments">) => import("./types.js").SectionComment[];
|
|
23
|
-
/** Parses AAA phases from a section comment value. */
|
|
24
|
-
declare const getSectionPhases: (commentValue: string) => import("./types.js").AaaPhase[];
|
|
25
|
-
/** Detects whether a statement contains any assertion call. */
|
|
26
|
-
declare const hasAssertion: (statement: import("estree").Statement) => boolean;
|
|
27
|
-
/** Detects asynchronous behavior such as awaits, promise chains, and promises. */
|
|
28
|
-
declare const hasAsyncLogic: (statement: import("estree").Statement) => boolean;
|
|
29
|
-
/** Detects whether a statement contains an `await` expression. */
|
|
30
|
-
declare const hasAwait: (statement: import("estree").Statement) => boolean;
|
|
31
|
-
/** Checks whether a section comment is separated by a blank line. */
|
|
32
|
-
declare const hasBlankLineBeforeComment: (sourceText: string, comment: import("estree").Comment) => boolean;
|
|
33
|
-
/** Detects Act expressions whose result should usually be captured. */
|
|
34
|
-
declare const hasCapturableActResult: (statement: import("estree").Statement) => boolean;
|
|
35
|
-
/** Detects mutation-oriented statements and array mutator calls. */
|
|
36
|
-
declare const hasMutation: (statement: import("estree").Statement) => boolean;
|
|
37
|
-
/** Detects statements that represent meaningful Act steps. */
|
|
38
|
-
declare const isMeaningfulActStatement: (statement: import("estree").Statement) => boolean;
|
|
39
|
-
/** Detects statements that should stay in Arrange as setup helpers. */
|
|
40
|
-
declare const isSetupLikeStatement: (statement: import("estree").Statement) => boolean;
|
|
41
|
-
/** Detects whether a statement shape is valid inside Assert. */
|
|
42
|
-
declare const isValidAssertStatement: (statement: import("estree").Statement) => boolean;
|
|
43
|
-
/** Checks whether an identifier matches the expected AAA naming prefix. */
|
|
44
|
-
declare const usesPrefix: (name: string, prefix: "actual" | "expected") => boolean;
|
|
45
|
-
export { aaaPhaseOrder, analyzeTestBlock, countActStatements, getAssertDeclaredIdentifiers, getAssertionIdentifiers, getFlattenedSections, getIndentationAtOffset, getLineStartRange, getPhaseBoundaryComments, getSectionPhases, hasAssertion, hasAsyncLogic, hasAwait, hasBlankLineBeforeComment, hasCapturableActResult, hasMutation, isMeaningfulActStatement, isSetupLikeStatement, isValidAssertStatement, usesPrefix, };
|
|
46
|
-
//# sourceMappingURL=analyzer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analyzer.d.ts","sourceRoot":"","sources":["../../../../src/domain/testing/aaa/analyzer.ts"],"names":[],"mappings":"AA2BA,yDAAyD;AACzD,QAAA,MAAM,aAAa;;;;CAA8B,CAAC;AAmBlD,qEAAqE;AACrE,QAAA,MAAM,gBAAgB,wIAA0C,CAAC;AAEjE,kEAAkE;AAClE,QAAA,MAAM,kBAAkB,2DAA4C,CAAC;AAErE,4DAA4D;AAC5D,QAAA,MAAM,4BAA4B,4HAEjC,CAAC;AAEF,8EAA8E;AAC9E,QAAA,MAAM,uBAAuB,yGAAiD,CAAC;AAE/E,mEAAmE;AACnE,QAAA,MAAM,oBAAoB,sIAA8C,CAAC;AAEzE,yEAAyE;AACzE,QAAA,MAAM,sBAAsB,gDAAgD,CAAC;AAE7E,8DAA8D;AAC9D,QAAA,MAAM,iBAAiB,wDAA2C,CAAC;AAEnE,mFAAmF;AACnF,QAAA,MAAM,wBAAwB,gHAE7B,CAAC;AAEF,sDAAsD;AACtD,QAAA,MAAM,gBAAgB,wDAA0C,CAAC;AAEjE,+DAA+D;AAC/D,QAAA,MAAM,YAAY,oDAAsC,CAAC;AAEzD,kFAAkF;AAClF,QAAA,MAAM,aAAa,oDAAuC,CAAC;AAE3D,kEAAkE;AAClE,QAAA,MAAM,QAAQ,oDAAkC,CAAC;AAEjD,qEAAqE;AACrE,QAAA,MAAM,yBAAyB,oEAE9B,CAAC;AAEF,uEAAuE;AACvE,QAAA,MAAM,sBAAsB,oDAAgD,CAAC;AAE7E,oEAAoE;AACpE,QAAA,MAAM,WAAW,oDAAqC,CAAC;AAEvD,8DAA8D;AAC9D,QAAA,MAAM,wBAAwB,oDAE7B,CAAC;AAEF,uEAAuE;AACvE,QAAA,MAAM,oBAAoB,oDAA8C,CAAC;AAEzE,gEAAgE;AAChE,QAAA,MAAM,sBAAsB,oDAAgD,CAAC;AAE7E,2EAA2E;AAC3E,QAAA,MAAM,UAAU,0DAAoC,CAAC;AAErD,OAAO,EACL,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,4BAA4B,EAC5B,uBAAuB,EACvB,oBAAoB,EACpB,sBAAsB,EACtB,iBAAiB,EACjB,wBAAwB,EACxB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,yBAAyB,EACzB,sBAAsB,EACtB,WAAW,EACX,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,UAAU,GACX,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { aaaPhaseOrder as aaaPhaseOrderImplementation, analyzeTestBlock as analyzeTestBlockImplementation, countActStatements as countActStatementsImplementation, getFlattenedSections as getFlattenedSectionsImplementation, getIndentationAtOffset as getIndentationAtOffsetImplementation, getLineStartRange as getLineStartRangeImplementation, getPhaseBoundaryComments as getPhaseBoundaryCommentsImplementation, getSectionPhases as getSectionPhasesImplementation, } from "./analyzer.analysis.js";
|
|
2
|
-
import { getAssertDeclaredIdentifiers as getAssertDeclaredIdentifiersImplementation, getAssertionIdentifiers as getAssertionIdentifiersImplementation, hasAssertion as hasAssertionImplementation, isValidAssertStatement as isValidAssertStatementImplementation, usesPrefix as usesPrefixImplementation, } from "./analyzer.assertions.js";
|
|
3
|
-
import { hasAsyncLogic as hasAsyncLogicImplementation, hasAwait as hasAwaitImplementation, hasBlankLineBeforeComment as hasBlankLineBeforeCommentImplementation, hasCapturableActResult as hasCapturableActResultImplementation, hasMutation as hasMutationImplementation, isMeaningfulActStatement as isMeaningfulActStatementImplementation, isSetupLikeStatement as isSetupLikeStatementImplementation, } from "./analyzer.classification.js";
|
|
4
|
-
/** Canonical ordering used when comparing AAA phases. */
|
|
5
|
-
const aaaPhaseOrder = aaaPhaseOrderImplementation;
|
|
6
|
-
/**
|
|
7
|
-
* Creates a local forwarding function for an imported analyzer helper.
|
|
8
|
-
* @template TParameters Forwarded parameter tuple.
|
|
9
|
-
* @template TResult Forwarded return type.
|
|
10
|
-
* @param implementation Imported helper implementation.
|
|
11
|
-
* @returns Local function that forwards all arguments to the implementation.
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* const localHelper = forward(implementation);
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
function forward(implementation) {
|
|
18
|
-
return (...parameters) => implementation(...parameters);
|
|
19
|
-
}
|
|
20
|
-
/** Analyzes a supported `it` or `test` callback for AAA sections. */
|
|
21
|
-
const analyzeTestBlock = forward(analyzeTestBlockImplementation);
|
|
22
|
-
/** Counts statement forms that should be treated as Act steps. */
|
|
23
|
-
const countActStatements = forward(countActStatementsImplementation);
|
|
24
|
-
/** Collects identifiers declared inside Assert sections. */
|
|
25
|
-
const getAssertDeclaredIdentifiers = forward(getAssertDeclaredIdentifiersImplementation);
|
|
26
|
-
/** Extracts `actual` and `expected` identifiers from assertion statements. */
|
|
27
|
-
const getAssertionIdentifiers = forward(getAssertionIdentifiersImplementation);
|
|
28
|
-
/** Flattens section comments into one entry per resolved phase. */
|
|
29
|
-
const getFlattenedSections = forward(getFlattenedSectionsImplementation);
|
|
30
|
-
/** Returns the indentation prefix that appears before a given offset. */
|
|
31
|
-
const getIndentationAtOffset = forward(getIndentationAtOffsetImplementation);
|
|
32
|
-
/** Resolves the starting range for a specific source line. */
|
|
33
|
-
const getLineStartRange = forward(getLineStartRangeImplementation);
|
|
34
|
-
/** Filters section comments down to phase boundaries that matter after Arrange. */
|
|
35
|
-
const getPhaseBoundaryComments = forward(getPhaseBoundaryCommentsImplementation);
|
|
36
|
-
/** Parses AAA phases from a section comment value. */
|
|
37
|
-
const getSectionPhases = forward(getSectionPhasesImplementation);
|
|
38
|
-
/** Detects whether a statement contains any assertion call. */
|
|
39
|
-
const hasAssertion = forward(hasAssertionImplementation);
|
|
40
|
-
/** Detects asynchronous behavior such as awaits, promise chains, and promises. */
|
|
41
|
-
const hasAsyncLogic = forward(hasAsyncLogicImplementation);
|
|
42
|
-
/** Detects whether a statement contains an `await` expression. */
|
|
43
|
-
const hasAwait = forward(hasAwaitImplementation);
|
|
44
|
-
/** Checks whether a section comment is separated by a blank line. */
|
|
45
|
-
const hasBlankLineBeforeComment = forward(hasBlankLineBeforeCommentImplementation);
|
|
46
|
-
/** Detects Act expressions whose result should usually be captured. */
|
|
47
|
-
const hasCapturableActResult = forward(hasCapturableActResultImplementation);
|
|
48
|
-
/** Detects mutation-oriented statements and array mutator calls. */
|
|
49
|
-
const hasMutation = forward(hasMutationImplementation);
|
|
50
|
-
/** Detects statements that represent meaningful Act steps. */
|
|
51
|
-
const isMeaningfulActStatement = forward(isMeaningfulActStatementImplementation);
|
|
52
|
-
/** Detects statements that should stay in Arrange as setup helpers. */
|
|
53
|
-
const isSetupLikeStatement = forward(isSetupLikeStatementImplementation);
|
|
54
|
-
/** Detects whether a statement shape is valid inside Assert. */
|
|
55
|
-
const isValidAssertStatement = forward(isValidAssertStatementImplementation);
|
|
56
|
-
/** Checks whether an identifier matches the expected AAA naming prefix. */
|
|
57
|
-
const usesPrefix = forward(usesPrefixImplementation);
|
|
58
|
-
export { aaaPhaseOrder, analyzeTestBlock, countActStatements, getAssertDeclaredIdentifiers, getAssertionIdentifiers, getFlattenedSections, getIndentationAtOffset, getLineStartRange, getPhaseBoundaryComments, getSectionPhases, hasAssertion, hasAsyncLogic, hasAwait, hasBlankLineBeforeComment, hasCapturableActResult, hasMutation, isMeaningfulActStatement, isSetupLikeStatement, isValidAssertStatement, usesPrefix, };
|
|
59
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5hbHl6ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZG9tYWluL3Rlc3RpbmcvYWFhL2FuYWx5emVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxhQUFhLElBQUksMkJBQTJCLEVBQzVDLGdCQUFnQixJQUFJLDhCQUE4QixFQUNsRCxrQkFBa0IsSUFBSSxnQ0FBZ0MsRUFDdEQsb0JBQW9CLElBQUksa0NBQWtDLEVBQzFELHNCQUFzQixJQUFJLG9DQUFvQyxFQUM5RCxpQkFBaUIsSUFBSSwrQkFBK0IsRUFDcEQsd0JBQXdCLElBQUksc0NBQXNDLEVBQ2xFLGdCQUFnQixJQUFJLDhCQUE4QixHQUNuRCxNQUFNLHFCQUFxQixDQUFDO0FBQzdCLE9BQU8sRUFDTCw0QkFBNEIsSUFBSSwwQ0FBMEMsRUFDMUUsdUJBQXVCLElBQUkscUNBQXFDLEVBQ2hFLFlBQVksSUFBSSwwQkFBMEIsRUFDMUMsc0JBQXNCLElBQUksb0NBQW9DLEVBQzlELFVBQVUsSUFBSSx3QkFBd0IsR0FDdkMsTUFBTSx1QkFBdUIsQ0FBQztBQUMvQixPQUFPLEVBQ0wsYUFBYSxJQUFJLDJCQUEyQixFQUM1QyxRQUFRLElBQUksc0JBQXNCLEVBQ2xDLHlCQUF5QixJQUFJLHVDQUF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aGFwZSBpcyB2YWxpZCBpbnNpZGUgQXNzZXJ0LiAqL1xuY29uc3QgaXNWYWxpZEFzc2VydFN0YXRlbWVudCA9IGZvcndhcmQoaXNWYWxpZEFzc2VydFN0YXRlbWVudEltcGxlbWVudGF0aW9uKTtcblxuLyoqIENoZWNrcyB3aGV0aGVyIGFuIGlkZW50aWZpZXIgbWF0Y2hlcyB0aGUgZXhwZWN0ZWQgQUFBIG5hbWluZyBwcmVmaXguICovXG5jb25zdCB1c2VzUHJlZml4ID0gZm9yd2FyZCh1c2VzUHJlZml4SW1wbGVtZW50YXRpb24pO1xuXG5leHBvcnQge1xuICBhYWFQaGFzZU9yZGVyLFxuICBhbmFseXplVGVzdEJsb2NrLFxuICBjb3VudEFjdFN0YXRlbWVudHMsXG4gIGdldEFzc2VydERlY2xhcmVkSWRlbnRpZmllcnMsXG4gIGdldEFzc2VydGlvbklkZW50aWZpZXJzLFxuICBnZXRGbGF0dGVuZWRTZWN0aW9ucyxcbiAgZ2V0SW5kZW50YXRpb25BdE9mZnNldCxcbiAgZ2V0TGluZVN0YXJ0UmFuZ2UsXG4gIGdldFBoYXNlQm91bmRhcnlDb21tZW50cyxcbiAgZ2V0U2VjdGlvblBoYXNlcyxcbiAgaGFzQXNzZXJ0aW9uLFxuICBoYXNBc3luY0xvZ2ljLFxuICBoYXNBd2FpdCxcbiAgaGFzQmxhbmtMaW5lQmVmb3JlQ29tbWVudCxcbiAgaGFzQ2FwdHVyYWJsZUFjdFJlc3VsdCxcbiAgaGFzTXV0YXRpb24sXG4gIGlzTWVhbmluZ2Z1bEFjdFN0YXRlbWVudCxcbiAgaXNTZXR1cExpa2VTdGF0ZW1lbnQsXG4gIGlzVmFsaWRBc3NlcnRTdGF0ZW1lbnQsXG4gIHVzZXNQcmVmaXgsXG59O1xuIl19
|
package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.combined.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Companion module for combined-section phase purity behavior spec coverage. */
|
|
2
|
-
declare const phasePurityReportingBehaviorCombinedCompanion: true;
|
|
3
|
-
export { phasePurityReportingBehaviorCombinedCompanion };
|
|
4
|
-
//# sourceMappingURL=phase-purity-reporting.behavior.combined.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phase-purity-reporting.behavior.combined.d.ts","sourceRoot":"","sources":["../../../../src/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.combined.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,QAAA,MAAM,6CAA6C,EAAG,IAAa,CAAC;AAEpE,OAAO,EAAE,6CAA6C,EAAE,CAAC"}
|
package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.combined.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Companion module for combined-section phase purity behavior spec coverage. */
|
|
2
|
-
const phasePurityReportingBehaviorCombinedCompanion = true;
|
|
3
|
-
export { phasePurityReportingBehaviorCombinedCompanion };
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGhhc2UtcHVyaXR5LXJlcG9ydGluZy5iZWhhdmlvci5jb21iaW5lZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9kb21haW4vdGVzdGluZy9lbmZvcmNlLWFhYS1waGFzZS1wdXJpdHkvcGhhc2UtcHVyaXR5LXJlcG9ydGluZy5iZWhhdmlvci5jb21iaW5lZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxpRkFBaUY7QUFDakYsTUFBTSw2Q0FBNkMsR0FBRyxJQUFhLENBQUM7QUFFcEUsT0FBTyxFQUFFLDZDQUE2QyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQ29tcGFuaW9uIG1vZHVsZSBmb3IgY29tYmluZWQtc2VjdGlvbiBwaGFzZSBwdXJpdHkgYmVoYXZpb3Igc3BlYyBjb3ZlcmFnZS4gKi9cclxuY29uc3QgcGhhc2VQdXJpdHlSZXBvcnRpbmdCZWhhdmlvckNvbWJpbmVkQ29tcGFuaW9uID0gdHJ1ZSBhcyBjb25zdDtcclxuXHJcbmV4cG9ydCB7IHBoYXNlUHVyaXR5UmVwb3J0aW5nQmVoYXZpb3JDb21iaW5lZENvbXBhbmlvbiB9O1xyXG4iXX0=
|
package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.companion.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Companion module for phase purity reporting companion marker spec coverage. */
|
|
2
|
-
declare const phasePurityReportingBehaviorCompanionCompanion: true;
|
|
3
|
-
export { phasePurityReportingBehaviorCompanionCompanion };
|
|
4
|
-
//# sourceMappingURL=phase-purity-reporting.behavior.companion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phase-purity-reporting.behavior.companion.d.ts","sourceRoot":"","sources":["../../../../src/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.companion.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,QAAA,MAAM,8CAA8C,EAAG,IAAa,CAAC;AAErE,OAAO,EAAE,8CAA8C,EAAE,CAAC"}
|
package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.companion.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Companion module for phase purity reporting companion marker spec coverage. */
|
|
2
|
-
const phasePurityReportingBehaviorCompanionCompanion = true;
|
|
3
|
-
export { phasePurityReportingBehaviorCompanionCompanion };
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGhhc2UtcHVyaXR5LXJlcG9ydGluZy5iZWhhdmlvci5jb21wYW5pb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZG9tYWluL3Rlc3RpbmcvZW5mb3JjZS1hYWEtcGhhc2UtcHVyaXR5L3BoYXNlLXB1cml0eS1yZXBvcnRpbmcuYmVoYXZpb3IuY29tcGFuaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGtGQUFrRjtBQUNsRixNQUFNLDhDQUE4QyxHQUFHLElBQWEsQ0FBQztBQUVyRSxPQUFPLEVBQUUsOENBQThDLEVBQUUsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBDb21wYW5pb24gbW9kdWxlIGZvciBwaGFzZSBwdXJpdHkgcmVwb3J0aW5nIGNvbXBhbmlvbiBtYXJrZXIgc3BlYyBjb3ZlcmFnZS4gKi9cclxuY29uc3QgcGhhc2VQdXJpdHlSZXBvcnRpbmdCZWhhdmlvckNvbXBhbmlvbkNvbXBhbmlvbiA9IHRydWUgYXMgY29uc3Q7XHJcblxyXG5leHBvcnQgeyBwaGFzZVB1cml0eVJlcG9ydGluZ0JlaGF2aW9yQ29tcGFuaW9uQ29tcGFuaW9uIH07XHJcbiJdfQ==
|
package/dist/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"phase-purity-reporting.behavior.d.ts","sourceRoot":"","sources":["../../../../src/domain/testing/enforce-aaa-phase-purity/phase-purity-reporting.behavior.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,QAAA,MAAM,qCAAqC,OAAO,CAAC;AAEnD,OAAO,EAAE,qCAAqC,EAAE,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** Companion marker for the phase-purity reporting behavior tests. */
|
|
2
|
-
const phasePurityReportingBehaviorCompanion = true;
|
|
3
|
-
export { phasePurityReportingBehaviorCompanion };
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGhhc2UtcHVyaXR5LXJlcG9ydGluZy5iZWhhdmlvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9kb21haW4vdGVzdGluZy9lbmZvcmNlLWFhYS1waGFzZS1wdXJpdHkvcGhhc2UtcHVyaXR5LXJlcG9ydGluZy5iZWhhdmlvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxzRUFBc0U7QUFDdEUsTUFBTSxxQ0FBcUMsR0FBRyxJQUFJLENBQUM7QUFFbkQsT0FBTyxFQUFFLHFDQUFxQyxFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQ29tcGFuaW9uIG1hcmtlciBmb3IgdGhlIHBoYXNlLXB1cml0eSByZXBvcnRpbmcgYmVoYXZpb3IgdGVzdHMuICovXHJcbmNvbnN0IHBoYXNlUHVyaXR5UmVwb3J0aW5nQmVoYXZpb3JDb21wYW5pb24gPSB0cnVlO1xyXG5cclxuZXhwb3J0IHsgcGhhc2VQdXJpdHlSZXBvcnRpbmdCZWhhdmlvckNvbXBhbmlvbiB9O1xyXG4iXX0=
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import type * as ESTree from "estree";
|
|
2
|
-
import { Linter } from "eslint";
|
|
3
|
-
import type { TestBlockAnalysis } from "../aaa/index.js";
|
|
4
|
-
/** Minimal analysis input accepted by the mocked AAA helper. */
|
|
5
|
-
interface MockedAnalysisInput {
|
|
6
|
-
/** Section comments relevant to the rule under test. */
|
|
7
|
-
sectionComments: {
|
|
8
|
-
/** Phase names declared by the synthetic comment. */
|
|
9
|
-
phases: TestBlockAnalysis["sectionComments"][number]["phases"];
|
|
10
|
-
}[];
|
|
11
|
-
/** Statement metadata relevant to the rule under test. */
|
|
12
|
-
statements: {
|
|
13
|
-
/** Synthetic statement node provided to the rule. */
|
|
14
|
-
node: ESTree.Statement;
|
|
15
|
-
/** Active phases assigned to the statement. */
|
|
16
|
-
phases: TestBlockAnalysis["statements"][number]["phases"];
|
|
17
|
-
}[];
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Runs the rule against one source snippet.
|
|
21
|
-
* @param code Source code passed to the linter.
|
|
22
|
-
* @returns Lint messages produced by the rule.
|
|
23
|
-
* @example
|
|
24
|
-
* ```typescript
|
|
25
|
-
* const messages = runRule('it("works", () => {});');
|
|
26
|
-
* void messages;
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
declare function runRule(code: string): Linter.LintMessage[];
|
|
30
|
-
/**
|
|
31
|
-
* Runs the rule with a mocked AAA analysis result.
|
|
32
|
-
* @param analysis Mocked analysis returned from `analyzeTestBlock`.
|
|
33
|
-
* @returns Captured report calls issued by the rule.
|
|
34
|
-
* @example
|
|
35
|
-
* ```typescript
|
|
36
|
-
* const calls = await runRuleWithMockedAnalysis({ sectionComments: [], statements: [] });
|
|
37
|
-
* void calls;
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
declare function runRuleWithMockedAnalysis(analysis: MockedAnalysisInput): Promise<unknown[][]>;
|
|
41
|
-
export { runRule, runRuleWithMockedAnalysis };
|
|
42
|
-
//# sourceMappingURL=rule-test-helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rule-test-helpers.d.ts","sourceRoot":"","sources":["../../../../src/domain/testing/enforce-aaa-phase-purity/rule-test-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAIhD,gEAAgE;AAChE,UAAU,mBAAmB;IAC3B,wDAAwD;IACxD,eAAe,EAAE;QACf,qDAAqD;QACrD,MAAM,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;KAChE,EAAE,CAAC;IACJ,0DAA0D;IAC1D,UAAU,EAAE;QACV,qDAAqD;QACrD,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC;QAEvB,+CAA+C;QAC/C,MAAM,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC;KAC3D,EAAE,CAAC;CACL;AAyJD;;;;;;;;;GASG;AACH,iBAAS,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,CA2BnD;AAED;;;;;;;;;GASG;AACH,iBAAe,yBAAyB,CACtC,QAAQ,EAAE,mBAAmB,GAC5B,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAUtB;AAED,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|