@empline/preflight 1.1.11 ā 1.1.13
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/dist/checks/consolidated/auth-storage-state.d.ts +3 -0
- package/dist/checks/consolidated/auth-storage-state.d.ts.map +1 -0
- package/dist/checks/consolidated/auth-storage-state.js +146 -0
- package/dist/checks/consolidated/auth-storage-state.js.map +1 -0
- package/dist/checks/consolidated/business.d.ts +50 -0
- package/dist/checks/consolidated/business.d.ts.map +1 -0
- package/dist/checks/consolidated/business.js +252 -0
- package/dist/checks/consolidated/business.js.map +1 -0
- package/dist/checks/consolidated/caching-strategy.d.ts +104 -0
- package/dist/checks/consolidated/caching-strategy.d.ts.map +1 -0
- package/dist/checks/consolidated/caching-strategy.js +725 -0
- package/dist/checks/consolidated/caching-strategy.js.map +1 -0
- package/dist/checks/consolidated/code-quality.d.ts +83 -0
- package/dist/checks/consolidated/code-quality.d.ts.map +1 -0
- package/dist/checks/consolidated/code-quality.js +445 -0
- package/dist/checks/consolidated/code-quality.js.map +1 -0
- package/dist/checks/consolidated/console-statements.d.ts +32 -0
- package/dist/checks/consolidated/console-statements.d.ts.map +1 -0
- package/dist/checks/consolidated/console-statements.js +304 -0
- package/dist/checks/consolidated/console-statements.js.map +1 -0
- package/dist/checks/consolidated/css-advanced-validation.d.ts +24 -0
- package/dist/checks/consolidated/css-advanced-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/css-advanced-validation.js +415 -0
- package/dist/checks/consolidated/css-advanced-validation.js.map +1 -0
- package/dist/checks/consolidated/css-organization.d.ts +14 -0
- package/dist/checks/consolidated/css-organization.d.ts.map +1 -0
- package/dist/checks/consolidated/css-organization.js +432 -0
- package/dist/checks/consolidated/css-organization.js.map +1 -0
- package/dist/checks/consolidated/css-runtime-validation.d.ts +22 -0
- package/dist/checks/consolidated/css-runtime-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/css-runtime-validation.js +330 -0
- package/dist/checks/consolidated/css-runtime-validation.js.map +1 -0
- package/dist/checks/consolidated/css-variable-validation.d.ts +17 -0
- package/dist/checks/consolidated/css-variable-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/css-variable-validation.js +412 -0
- package/dist/checks/consolidated/css-variable-validation.js.map +1 -0
- package/dist/checks/consolidated/dark-mode-consistency.d.ts +23 -0
- package/dist/checks/consolidated/dark-mode-consistency.d.ts.map +1 -0
- package/dist/checks/consolidated/dark-mode-consistency.js +291 -0
- package/dist/checks/consolidated/dark-mode-consistency.js.map +1 -0
- package/dist/checks/consolidated/database.d.ts +95 -0
- package/dist/checks/consolidated/database.d.ts.map +1 -0
- package/dist/checks/consolidated/database.js +427 -0
- package/dist/checks/consolidated/database.js.map +1 -0
- package/dist/checks/consolidated/e2e-checks.d.ts +52 -0
- package/dist/checks/consolidated/e2e-checks.d.ts.map +1 -0
- package/dist/checks/consolidated/e2e-checks.js +157 -0
- package/dist/checks/consolidated/e2e-checks.js.map +1 -0
- package/dist/checks/consolidated/e2e-regression-coverage.d.ts +14 -0
- package/dist/checks/consolidated/e2e-regression-coverage.d.ts.map +1 -0
- package/dist/checks/consolidated/e2e-regression-coverage.js +151 -0
- package/dist/checks/consolidated/e2e-regression-coverage.js.map +1 -0
- package/dist/checks/consolidated/e2e-validation.d.ts +137 -0
- package/dist/checks/consolidated/e2e-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/e2e-validation.js +1001 -0
- package/dist/checks/consolidated/e2e-validation.js.map +1 -0
- package/dist/checks/consolidated/enterprise-baseline.d.ts +9 -0
- package/dist/checks/consolidated/enterprise-baseline.d.ts.map +1 -0
- package/dist/checks/consolidated/enterprise-baseline.js +277 -0
- package/dist/checks/consolidated/enterprise-baseline.js.map +1 -0
- package/dist/checks/consolidated/generate-pageload-config.d.ts +6 -0
- package/dist/checks/consolidated/generate-pageload-config.d.ts.map +1 -0
- package/dist/checks/consolidated/generate-pageload-config.js +161 -0
- package/dist/checks/consolidated/generate-pageload-config.js.map +1 -0
- package/dist/checks/consolidated/hardened-checks.d.ts +276 -0
- package/dist/checks/consolidated/hardened-checks.d.ts.map +1 -0
- package/dist/checks/consolidated/hardened-checks.js +3056 -0
- package/dist/checks/consolidated/hardened-checks.js.map +1 -0
- package/dist/checks/consolidated/homepage-ux.d.ts +12 -0
- package/dist/checks/consolidated/homepage-ux.d.ts.map +1 -0
- package/dist/checks/consolidated/homepage-ux.js +242 -0
- package/dist/checks/consolidated/homepage-ux.js.map +1 -0
- package/dist/checks/consolidated/images.d.ts +76 -0
- package/dist/checks/consolidated/images.d.ts.map +1 -0
- package/dist/checks/consolidated/images.js +311 -0
- package/dist/checks/consolidated/images.js.map +1 -0
- package/dist/checks/consolidated/import-cycles.d.ts +63 -0
- package/dist/checks/consolidated/import-cycles.d.ts.map +1 -0
- package/dist/checks/consolidated/import-cycles.js +291 -0
- package/dist/checks/consolidated/import-cycles.js.map +1 -0
- package/dist/checks/consolidated/imports.d.ts +112 -0
- package/dist/checks/consolidated/imports.d.ts.map +1 -0
- package/dist/checks/consolidated/imports.js +977 -0
- package/dist/checks/consolidated/imports.js.map +1 -0
- package/dist/checks/consolidated/inline-style-conflicts.d.ts +21 -0
- package/dist/checks/consolidated/inline-style-conflicts.d.ts.map +1 -0
- package/dist/checks/consolidated/inline-style-conflicts.js +300 -0
- package/dist/checks/consolidated/inline-style-conflicts.js.map +1 -0
- package/dist/checks/consolidated/lib-organization.d.ts +12 -0
- package/dist/checks/consolidated/lib-organization.d.ts.map +1 -0
- package/dist/checks/consolidated/lib-organization.js +419 -0
- package/dist/checks/consolidated/lib-organization.js.map +1 -0
- package/dist/checks/consolidated/n-plus-one.d.ts +63 -0
- package/dist/checks/consolidated/n-plus-one.d.ts.map +1 -0
- package/dist/checks/consolidated/n-plus-one.js +331 -0
- package/dist/checks/consolidated/n-plus-one.js.map +1 -0
- package/dist/checks/consolidated/nextjs.d.ts +51 -0
- package/dist/checks/consolidated/nextjs.d.ts.map +1 -0
- package/dist/checks/consolidated/nextjs.js +205 -0
- package/dist/checks/consolidated/nextjs.js.map +1 -0
- package/dist/checks/consolidated/organization.d.ts +54 -0
- package/dist/checks/consolidated/organization.d.ts.map +1 -0
- package/dist/checks/consolidated/organization.js +158 -0
- package/dist/checks/consolidated/organization.js.map +1 -0
- package/dist/checks/consolidated/pageload.d.ts +12 -0
- package/dist/checks/consolidated/pageload.d.ts.map +1 -0
- package/dist/checks/consolidated/pageload.js +138 -0
- package/dist/checks/consolidated/pageload.js.map +1 -0
- package/dist/checks/consolidated/performance.d.ts +112 -0
- package/dist/checks/consolidated/performance.d.ts.map +1 -0
- package/dist/checks/consolidated/performance.js +1546 -0
- package/dist/checks/consolidated/performance.js.map +1 -0
- package/dist/checks/consolidated/quality.d.ts +52 -0
- package/dist/checks/consolidated/quality.d.ts.map +1 -0
- package/dist/checks/consolidated/quality.js +253 -0
- package/dist/checks/consolidated/quality.js.map +1 -0
- package/dist/checks/consolidated/react.d.ts +48 -0
- package/dist/checks/consolidated/react.d.ts.map +1 -0
- package/dist/checks/consolidated/react.js +203 -0
- package/dist/checks/consolidated/react.js.map +1 -0
- package/dist/checks/consolidated/regression-hygiene.d.ts +17 -0
- package/dist/checks/consolidated/regression-hygiene.d.ts.map +1 -0
- package/dist/checks/consolidated/regression-hygiene.js +242 -0
- package/dist/checks/consolidated/regression-hygiene.js.map +1 -0
- package/dist/checks/consolidated/regression.d.ts +20 -0
- package/dist/checks/consolidated/regression.d.ts.map +1 -0
- package/dist/checks/consolidated/regression.js +121 -0
- package/dist/checks/consolidated/regression.js.map +1 -0
- package/dist/checks/consolidated/runtime.d.ts +53 -0
- package/dist/checks/consolidated/runtime.d.ts.map +1 -0
- package/dist/checks/consolidated/runtime.js +160 -0
- package/dist/checks/consolidated/runtime.js.map +1 -0
- package/dist/checks/consolidated/script-performance.d.ts +17 -0
- package/dist/checks/consolidated/script-performance.d.ts.map +1 -0
- package/dist/checks/consolidated/script-performance.js +137 -0
- package/dist/checks/consolidated/script-performance.js.map +1 -0
- package/dist/checks/consolidated/security.d.ts +78 -0
- package/dist/checks/consolidated/security.d.ts.map +1 -0
- package/dist/checks/consolidated/security.js +404 -0
- package/dist/checks/consolidated/security.js.map +1 -0
- package/dist/checks/consolidated/seo.d.ts +31 -0
- package/dist/checks/consolidated/seo.d.ts.map +1 -0
- package/dist/checks/consolidated/seo.js +1438 -0
- package/dist/checks/consolidated/seo.js.map +1 -0
- package/dist/checks/consolidated/sx-prop-deprecation.d.ts +22 -0
- package/dist/checks/consolidated/sx-prop-deprecation.d.ts.map +1 -0
- package/dist/checks/consolidated/sx-prop-deprecation.js +280 -0
- package/dist/checks/consolidated/sx-prop-deprecation.js.map +1 -0
- package/dist/checks/consolidated/tailwind-class-validation.d.ts +25 -0
- package/dist/checks/consolidated/tailwind-class-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/tailwind-class-validation.js +533 -0
- package/dist/checks/consolidated/tailwind-class-validation.js.map +1 -0
- package/dist/checks/consolidated/testing.d.ts +54 -0
- package/dist/checks/consolidated/testing.d.ts.map +1 -0
- package/dist/checks/consolidated/testing.js +163 -0
- package/dist/checks/consolidated/testing.js.map +1 -0
- package/dist/checks/consolidated/typescript.d.ts +3 -0
- package/dist/checks/consolidated/typescript.d.ts.map +1 -0
- package/dist/checks/consolidated/typescript.js +31 -0
- package/dist/checks/consolidated/typescript.js.map +1 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.d.ts +104 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.js +689 -0
- package/dist/checks/consolidated/ui-accessibility-advanced.js.map +1 -0
- package/dist/checks/consolidated/ui-accessibility.d.ts +121 -0
- package/dist/checks/consolidated/ui-accessibility.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-accessibility.js +776 -0
- package/dist/checks/consolidated/ui-accessibility.js.map +1 -0
- package/dist/checks/consolidated/ui-advanced-spacing.d.ts +142 -0
- package/dist/checks/consolidated/ui-advanced-spacing.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-advanced-spacing.js +1220 -0
- package/dist/checks/consolidated/ui-advanced-spacing.js.map +1 -0
- package/dist/checks/consolidated/ui-animation-duration.d.ts +108 -0
- package/dist/checks/consolidated/ui-animation-duration.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-animation-duration.js +531 -0
- package/dist/checks/consolidated/ui-animation-duration.js.map +1 -0
- package/dist/checks/consolidated/ui-border-radius.d.ts +90 -0
- package/dist/checks/consolidated/ui-border-radius.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-border-radius.js +519 -0
- package/dist/checks/consolidated/ui-border-radius.js.map +1 -0
- package/dist/checks/consolidated/ui-buttons.d.ts +32 -0
- package/dist/checks/consolidated/ui-buttons.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-buttons.js +481 -0
- package/dist/checks/consolidated/ui-buttons.js.map +1 -0
- package/dist/checks/consolidated/ui-cards.d.ts +29 -0
- package/dist/checks/consolidated/ui-cards.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-cards.js +504 -0
- package/dist/checks/consolidated/ui-cards.js.map +1 -0
- package/dist/checks/consolidated/ui-checks.d.ts +48 -0
- package/dist/checks/consolidated/ui-checks.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-checks.js +264 -0
- package/dist/checks/consolidated/ui-checks.js.map +1 -0
- package/dist/checks/consolidated/ui-cleanup.d.ts +81 -0
- package/dist/checks/consolidated/ui-cleanup.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-cleanup.js +650 -0
- package/dist/checks/consolidated/ui-cleanup.js.map +1 -0
- package/dist/checks/consolidated/ui-components.d.ts +255 -0
- package/dist/checks/consolidated/ui-components.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-components.js +2008 -0
- package/dist/checks/consolidated/ui-components.js.map +1 -0
- package/dist/checks/consolidated/ui-consistency-advanced.d.ts +130 -0
- package/dist/checks/consolidated/ui-consistency-advanced.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-consistency-advanced.js +982 -0
- package/dist/checks/consolidated/ui-consistency-advanced.js.map +1 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.d.ts +30 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.js +1018 -0
- package/dist/checks/consolidated/ui-consistency-comprehensive.js.map +1 -0
- package/dist/checks/consolidated/ui-consistency-extended.d.ts +26 -0
- package/dist/checks/consolidated/ui-consistency-extended.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-consistency-extended.js +606 -0
- package/dist/checks/consolidated/ui-consistency-extended.js.map +1 -0
- package/dist/checks/consolidated/ui-data-display.d.ts +103 -0
- package/dist/checks/consolidated/ui-data-display.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-data-display.js +740 -0
- package/dist/checks/consolidated/ui-data-display.js.map +1 -0
- package/dist/checks/consolidated/ui-deprecated.d.ts +22 -0
- package/dist/checks/consolidated/ui-deprecated.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-deprecated.js +336 -0
- package/dist/checks/consolidated/ui-deprecated.js.map +1 -0
- package/dist/checks/consolidated/ui-empty-null-states.d.ts +90 -0
- package/dist/checks/consolidated/ui-empty-null-states.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-empty-null-states.js +511 -0
- package/dist/checks/consolidated/ui-empty-null-states.js.map +1 -0
- package/dist/checks/consolidated/ui-error-states.d.ts +99 -0
- package/dist/checks/consolidated/ui-error-states.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-error-states.js +694 -0
- package/dist/checks/consolidated/ui-error-states.js.map +1 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.d.ts +90 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.js +596 -0
- package/dist/checks/consolidated/ui-feedback-confirmations.js.map +1 -0
- package/dist/checks/consolidated/ui-forms.d.ts +32 -0
- package/dist/checks/consolidated/ui-forms.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-forms.js +568 -0
- package/dist/checks/consolidated/ui-forms.js.map +1 -0
- package/dist/checks/consolidated/ui-gradient-shadow.d.ts +90 -0
- package/dist/checks/consolidated/ui-gradient-shadow.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-gradient-shadow.js +568 -0
- package/dist/checks/consolidated/ui-gradient-shadow.js.map +1 -0
- package/dist/checks/consolidated/ui-grid-responsive.d.ts +27 -0
- package/dist/checks/consolidated/ui-grid-responsive.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-grid-responsive.js +441 -0
- package/dist/checks/consolidated/ui-grid-responsive.js.map +1 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.d.ts +104 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.js +514 -0
- package/dist/checks/consolidated/ui-icon-size-tokens.js.map +1 -0
- package/dist/checks/consolidated/ui-iconography.d.ts +90 -0
- package/dist/checks/consolidated/ui-iconography.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-iconography.js +565 -0
- package/dist/checks/consolidated/ui-iconography.js.map +1 -0
- package/dist/checks/consolidated/ui-interactive-states.d.ts +240 -0
- package/dist/checks/consolidated/ui-interactive-states.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-interactive-states.js +2474 -0
- package/dist/checks/consolidated/ui-interactive-states.js.map +1 -0
- package/dist/checks/consolidated/ui-layout.d.ts +256 -0
- package/dist/checks/consolidated/ui-layout.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-layout.js +1371 -0
- package/dist/checks/consolidated/ui-layout.js.map +1 -0
- package/dist/checks/consolidated/ui-loading-skeletons.d.ts +11 -0
- package/dist/checks/consolidated/ui-loading-skeletons.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-loading-skeletons.js +145 -0
- package/dist/checks/consolidated/ui-loading-skeletons.js.map +1 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.d.ts +9 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.js +125 -0
- package/dist/checks/consolidated/ui-loading-state-skeletons.js.map +1 -0
- package/dist/checks/consolidated/ui-media.d.ts +74 -0
- package/dist/checks/consolidated/ui-media.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-media.js +408 -0
- package/dist/checks/consolidated/ui-media.js.map +1 -0
- package/dist/checks/consolidated/ui-micro-interactions.d.ts +107 -0
- package/dist/checks/consolidated/ui-micro-interactions.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-micro-interactions.js +825 -0
- package/dist/checks/consolidated/ui-micro-interactions.js.map +1 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.d.ts +114 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.js +566 -0
- package/dist/checks/consolidated/ui-microcopy-consistency.js.map +1 -0
- package/dist/checks/consolidated/ui-mobile-ux.d.ts +251 -0
- package/dist/checks/consolidated/ui-mobile-ux.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-mobile-ux.js +2212 -0
- package/dist/checks/consolidated/ui-mobile-ux.js.map +1 -0
- package/dist/checks/consolidated/ui-motion-accessibility.d.ts +93 -0
- package/dist/checks/consolidated/ui-motion-accessibility.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-motion-accessibility.js +450 -0
- package/dist/checks/consolidated/ui-motion-accessibility.js.map +1 -0
- package/dist/checks/consolidated/ui-navigation.d.ts +85 -0
- package/dist/checks/consolidated/ui-navigation.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-navigation.js +673 -0
- package/dist/checks/consolidated/ui-navigation.js.map +1 -0
- package/dist/checks/consolidated/ui-patterns.d.ts +174 -0
- package/dist/checks/consolidated/ui-patterns.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-patterns.js +1532 -0
- package/dist/checks/consolidated/ui-patterns.js.map +1 -0
- package/dist/checks/consolidated/ui-responsive.d.ts +89 -0
- package/dist/checks/consolidated/ui-responsive.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-responsive.js +588 -0
- package/dist/checks/consolidated/ui-responsive.js.map +1 -0
- package/dist/checks/consolidated/ui-spacing-standards.d.ts +43 -0
- package/dist/checks/consolidated/ui-spacing-standards.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-spacing-standards.js +874 -0
- package/dist/checks/consolidated/ui-spacing-standards.js.map +1 -0
- package/dist/checks/consolidated/ui-spacing.d.ts +751 -0
- package/dist/checks/consolidated/ui-spacing.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-spacing.js +4996 -0
- package/dist/checks/consolidated/ui-spacing.js.map +1 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.d.ts +70 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.js +429 -0
- package/dist/checks/consolidated/ui-standards-auto-fixer.js.map +1 -0
- package/dist/checks/consolidated/ui-standards-enforcement.d.ts +100 -0
- package/dist/checks/consolidated/ui-standards-enforcement.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-standards-enforcement.js +935 -0
- package/dist/checks/consolidated/ui-standards-enforcement.js.map +1 -0
- package/dist/checks/consolidated/ui-state-consistency.d.ts +90 -0
- package/dist/checks/consolidated/ui-state-consistency.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-state-consistency.js +659 -0
- package/dist/checks/consolidated/ui-state-consistency.js.map +1 -0
- package/dist/checks/consolidated/ui-style-validation.d.ts +74 -0
- package/dist/checks/consolidated/ui-style-validation.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-style-validation.js +403 -0
- package/dist/checks/consolidated/ui-style-validation.js.map +1 -0
- package/dist/checks/consolidated/ui-tokens.d.ts +110 -0
- package/dist/checks/consolidated/ui-tokens.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-tokens.js +990 -0
- package/dist/checks/consolidated/ui-tokens.js.map +1 -0
- package/dist/checks/consolidated/ui-typography.d.ts +77 -0
- package/dist/checks/consolidated/ui-typography.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-typography.js +416 -0
- package/dist/checks/consolidated/ui-typography.js.map +1 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.d.ts +90 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.d.ts.map +1 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.js +562 -0
- package/dist/checks/consolidated/ui-visual-hierarchy.js.map +1 -0
- package/dist/checks/consolidated/woocommerce.d.ts +50 -0
- package/dist/checks/consolidated/woocommerce.d.ts.map +1 -0
- package/dist/checks/consolidated/woocommerce.js +198 -0
- package/dist/checks/consolidated/woocommerce.js.map +1 -0
- package/dist/checks/core/api-route-protection.d.ts +2 -0
- package/dist/checks/core/api-route-protection.d.ts.map +1 -0
- package/dist/checks/core/api-route-protection.js +101 -0
- package/dist/checks/core/api-route-protection.js.map +1 -0
- package/dist/checks/core/critical.d.ts +8 -0
- package/dist/checks/core/critical.d.ts.map +1 -0
- package/dist/checks/core/critical.js +200 -0
- package/dist/checks/core/critical.js.map +1 -0
- package/dist/checks/core/database.d.ts +8 -0
- package/dist/checks/core/database.d.ts.map +1 -0
- package/dist/checks/core/database.js +699 -0
- package/dist/checks/core/database.js.map +1 -0
- package/dist/checks/core/development.d.ts +8 -0
- package/dist/checks/core/development.d.ts.map +1 -0
- package/dist/checks/core/development.js +417 -0
- package/dist/checks/core/development.js.map +1 -0
- package/dist/checks/core/hydration-mismatch-check.d.ts +38 -0
- package/dist/checks/core/hydration-mismatch-check.d.ts.map +1 -0
- package/dist/checks/core/hydration-mismatch-check.js +411 -0
- package/dist/checks/core/hydration-mismatch-check.js.map +1 -0
- package/dist/checks/core/performance.d.ts +8 -0
- package/dist/checks/core/performance.d.ts.map +1 -0
- package/dist/checks/core/performance.js +474 -0
- package/dist/checks/core/performance.js.map +1 -0
- package/dist/checks/core/security.d.ts +8 -0
- package/dist/checks/core/security.d.ts.map +1 -0
- package/dist/checks/core/security.js +275 -0
- package/dist/checks/core/security.js.map +1 -0
- package/dist/checks/core/standardized-error-handling.d.ts +43 -0
- package/dist/checks/core/standardized-error-handling.d.ts.map +1 -0
- package/dist/checks/core/standardized-error-handling.js +384 -0
- package/dist/checks/core/standardized-error-handling.js.map +1 -0
- package/dist/checks/core/supercatch.d.ts +8 -0
- package/dist/checks/core/supercatch.d.ts.map +1 -0
- package/dist/checks/core/supercatch.js +750 -0
- package/dist/checks/core/supercatch.js.map +1 -0
- package/dist/checks/core/suppression-check.d.ts +2 -0
- package/dist/checks/core/suppression-check.d.ts.map +1 -0
- package/dist/checks/core/suppression-check.js +129 -0
- package/dist/checks/core/suppression-check.js.map +1 -0
- package/dist/checks/core/ui-quality.d.ts +8 -0
- package/dist/checks/core/ui-quality.d.ts.map +1 -0
- package/dist/checks/core/ui-quality.js +1736 -0
- package/dist/checks/core/ui-quality.js.map +1 -0
- package/dist/checks/core/unused-assets-check.d.ts +2 -0
- package/dist/checks/core/unused-assets-check.d.ts.map +1 -0
- package/dist/checks/core/unused-assets-check.js +112 -0
- package/dist/checks/core/unused-assets-check.js.map +1 -0
- package/dist/checks/core/use-status-ssr-safety.d.ts +34 -0
- package/dist/checks/core/use-status-ssr-safety.d.ts.map +1 -0
- package/dist/checks/core/use-status-ssr-safety.js +283 -0
- package/dist/checks/core/use-status-ssr-safety.js.map +1 -0
- package/dist/checks/email/email-flow-validation.d.ts +23 -0
- package/dist/checks/email/email-flow-validation.d.ts.map +1 -0
- package/dist/checks/email/email-flow-validation.js +468 -0
- package/dist/checks/email/email-flow-validation.js.map +1 -0
- package/dist/checks/email/email-template-db-verification.d.ts +20 -0
- package/dist/checks/email/email-template-db-verification.d.ts.map +1 -0
- package/dist/checks/email/email-template-db-verification.js +46 -0
- package/dist/checks/email/email-template-db-verification.js.map +1 -0
- package/dist/checks/email/email-template-validation.d.ts +24 -0
- package/dist/checks/email/email-template-validation.d.ts.map +1 -0
- package/dist/checks/email/email-template-validation.js +688 -0
- package/dist/checks/email/email-template-validation.js.map +1 -0
- package/dist/checks/jsx/comment-placement.d.ts +45 -0
- package/dist/checks/jsx/comment-placement.d.ts.map +1 -0
- package/dist/checks/jsx/comment-placement.js +316 -0
- package/dist/checks/jsx/comment-placement.js.map +1 -0
- package/dist/checks/specialized/admin-layout-check.d.ts +19 -0
- package/dist/checks/specialized/admin-layout-check.d.ts.map +1 -0
- package/dist/checks/specialized/admin-layout-check.js +166 -0
- package/dist/checks/specialized/admin-layout-check.js.map +1 -0
- package/dist/checks/specialized/client-server-separation.d.ts +14 -0
- package/dist/checks/specialized/client-server-separation.d.ts.map +1 -0
- package/dist/checks/specialized/client-server-separation.js +197 -0
- package/dist/checks/specialized/client-server-separation.js.map +1 -0
- package/dist/checks/specialized/cost-optimization.d.ts +18 -0
- package/dist/checks/specialized/cost-optimization.d.ts.map +1 -0
- package/dist/checks/specialized/cost-optimization.js +78 -0
- package/dist/checks/specialized/cost-optimization.js.map +1 -0
- package/dist/checks/specialized/database-migration-sync.d.ts +21 -0
- package/dist/checks/specialized/database-migration-sync.d.ts.map +1 -0
- package/dist/checks/specialized/database-migration-sync.js +150 -0
- package/dist/checks/specialized/database-migration-sync.js.map +1 -0
- package/dist/checks/specialized/database-model-validation.d.ts +15 -0
- package/dist/checks/specialized/database-model-validation.d.ts.map +1 -0
- package/dist/checks/specialized/database-model-validation.js +35 -0
- package/dist/checks/specialized/database-model-validation.js.map +1 -0
- package/dist/checks/specialized/database-schema-migrations-diff.d.ts +27 -0
- package/dist/checks/specialized/database-schema-migrations-diff.d.ts.map +1 -0
- package/dist/checks/specialized/database-schema-migrations-diff.js +177 -0
- package/dist/checks/specialized/database-schema-migrations-diff.js.map +1 -0
- package/dist/checks/specialized/database-schema-sync.d.ts +23 -0
- package/dist/checks/specialized/database-schema-sync.d.ts.map +1 -0
- package/dist/checks/specialized/database-schema-sync.js +77 -0
- package/dist/checks/specialized/database-schema-sync.js.map +1 -0
- package/dist/checks/specialized/decimal-serialization.d.ts +24 -0
- package/dist/checks/specialized/decimal-serialization.d.ts.map +1 -0
- package/dist/checks/specialized/decimal-serialization.js +400 -0
- package/dist/checks/specialized/decimal-serialization.js.map +1 -0
- package/dist/checks/specialized/detect-router-issues.d.ts +14 -0
- package/dist/checks/specialized/detect-router-issues.d.ts.map +1 -0
- package/dist/checks/specialized/detect-router-issues.js +96 -0
- package/dist/checks/specialized/detect-router-issues.js.map +1 -0
- package/dist/checks/specialized/enum-validation.d.ts +15 -0
- package/dist/checks/specialized/enum-validation.d.ts.map +1 -0
- package/dist/checks/specialized/enum-validation.js +35 -0
- package/dist/checks/specialized/enum-validation.js.map +1 -0
- package/dist/checks/specialized/hash-collision.d.ts +18 -0
- package/dist/checks/specialized/hash-collision.d.ts.map +1 -0
- package/dist/checks/specialized/hash-collision.js +78 -0
- package/dist/checks/specialized/hash-collision.js.map +1 -0
- package/dist/checks/specialized/id-generation-enforcement.d.ts +16 -0
- package/dist/checks/specialized/id-generation-enforcement.d.ts.map +1 -0
- package/dist/checks/specialized/id-generation-enforcement.js +307 -0
- package/dist/checks/specialized/id-generation-enforcement.js.map +1 -0
- package/dist/checks/specialized/image-data-integrity.d.ts +15 -0
- package/dist/checks/specialized/image-data-integrity.d.ts.map +1 -0
- package/dist/checks/specialized/image-data-integrity.js +79 -0
- package/dist/checks/specialized/image-data-integrity.js.map +1 -0
- package/dist/checks/specialized/image-health.d.ts +14 -0
- package/dist/checks/specialized/image-health.d.ts.map +1 -0
- package/dist/checks/specialized/image-health.js +122 -0
- package/dist/checks/specialized/image-health.js.map +1 -0
- package/dist/checks/specialized/image-metadata-validation.d.ts +14 -0
- package/dist/checks/specialized/image-metadata-validation.d.ts.map +1 -0
- package/dist/checks/specialized/image-metadata-validation.js +95 -0
- package/dist/checks/specialized/image-metadata-validation.js.map +1 -0
- package/dist/checks/specialized/image-optimization.d.ts +16 -0
- package/dist/checks/specialized/image-optimization.d.ts.map +1 -0
- package/dist/checks/specialized/image-optimization.js +86 -0
- package/dist/checks/specialized/image-optimization.js.map +1 -0
- package/dist/checks/specialized/invalid-module-imports.d.ts +24 -0
- package/dist/checks/specialized/invalid-module-imports.d.ts.map +1 -0
- package/dist/checks/specialized/invalid-module-imports.js +209 -0
- package/dist/checks/specialized/invalid-module-imports.js.map +1 -0
- package/dist/checks/specialized/lint-validation.d.ts +26 -0
- package/dist/checks/specialized/lint-validation.d.ts.map +1 -0
- package/dist/checks/specialized/lint-validation.js +193 -0
- package/dist/checks/specialized/lint-validation.js.map +1 -0
- package/dist/checks/specialized/listing-workflow.d.ts +19 -0
- package/dist/checks/specialized/listing-workflow.d.ts.map +1 -0
- package/dist/checks/specialized/listing-workflow.js +89 -0
- package/dist/checks/specialized/listing-workflow.js.map +1 -0
- package/dist/checks/specialized/mui-imports-validation.d.ts +18 -0
- package/dist/checks/specialized/mui-imports-validation.d.ts.map +1 -0
- package/dist/checks/specialized/mui-imports-validation.js +134 -0
- package/dist/checks/specialized/mui-imports-validation.js.map +1 -0
- package/dist/checks/specialized/nextauth-v5-compliance.d.ts +16 -0
- package/dist/checks/specialized/nextauth-v5-compliance.d.ts.map +1 -0
- package/dist/checks/specialized/nextauth-v5-compliance.js +164 -0
- package/dist/checks/specialized/nextauth-v5-compliance.js.map +1 -0
- package/dist/checks/specialized/nextjs-params-check.d.ts +14 -0
- package/dist/checks/specialized/nextjs-params-check.d.ts.map +1 -0
- package/dist/checks/specialized/nextjs-params-check.js +140 -0
- package/dist/checks/specialized/nextjs-params-check.js.map +1 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.d.ts +16 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.d.ts.map +1 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.js +36 -0
- package/dist/checks/specialized/no-legacy-catalog-aliases-validation.js.map +1 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.d.ts +22 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.d.ts.map +1 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.js +97 -0
- package/dist/checks/specialized/no-wata-cardgraded-validation.js.map +1 -0
- package/dist/checks/specialized/parameter-consistency-check.d.ts +20 -0
- package/dist/checks/specialized/parameter-consistency-check.d.ts.map +1 -0
- package/dist/checks/specialized/parameter-consistency-check.js +115 -0
- package/dist/checks/specialized/parameter-consistency-check.js.map +1 -0
- package/dist/checks/specialized/prisma-field-names-validation.d.ts +15 -0
- package/dist/checks/specialized/prisma-field-names-validation.d.ts.map +1 -0
- package/dist/checks/specialized/prisma-field-names-validation.js +35 -0
- package/dist/checks/specialized/prisma-field-names-validation.js.map +1 -0
- package/dist/checks/specialized/prisma-null-syntax.d.ts +34 -0
- package/dist/checks/specialized/prisma-null-syntax.d.ts.map +1 -0
- package/dist/checks/specialized/prisma-null-syntax.js +330 -0
- package/dist/checks/specialized/prisma-null-syntax.js.map +1 -0
- package/dist/checks/specialized/prisma-query-validation.d.ts +15 -0
- package/dist/checks/specialized/prisma-query-validation.d.ts.map +1 -0
- package/dist/checks/specialized/prisma-query-validation.js +35 -0
- package/dist/checks/specialized/prisma-query-validation.js.map +1 -0
- package/dist/checks/specialized/product-type-validation.d.ts +17 -0
- package/dist/checks/specialized/product-type-validation.d.ts.map +1 -0
- package/dist/checks/specialized/product-type-validation.js +129 -0
- package/dist/checks/specialized/product-type-validation.js.map +1 -0
- package/dist/checks/specialized/responsive-image-validation.d.ts +14 -0
- package/dist/checks/specialized/responsive-image-validation.d.ts.map +1 -0
- package/dist/checks/specialized/responsive-image-validation.js +101 -0
- package/dist/checks/specialized/responsive-image-validation.js.map +1 -0
- package/dist/checks/specialized/root-cleanliness.d.ts +21 -0
- package/dist/checks/specialized/root-cleanliness.d.ts.map +1 -0
- package/dist/checks/specialized/root-cleanliness.js +251 -0
- package/dist/checks/specialized/root-cleanliness.js.map +1 -0
- package/dist/checks/specialized/rotation-detection-validation.d.ts +16 -0
- package/dist/checks/specialized/rotation-detection-validation.d.ts.map +1 -0
- package/dist/checks/specialized/rotation-detection-validation.js +113 -0
- package/dist/checks/specialized/rotation-detection-validation.js.map +1 -0
- package/dist/checks/specialized/script-organization.d.ts +17 -0
- package/dist/checks/specialized/script-organization.d.ts.map +1 -0
- package/dist/checks/specialized/script-organization.js +487 -0
- package/dist/checks/specialized/script-organization.js.map +1 -0
- package/dist/checks/specialized/shared-components-migration.d.ts +137 -0
- package/dist/checks/specialized/shared-components-migration.d.ts.map +1 -0
- package/dist/checks/specialized/shared-components-migration.js +1288 -0
- package/dist/checks/specialized/shared-components-migration.js.map +1 -0
- package/dist/checks/specialized/store-specialties-normalization.d.ts +10 -0
- package/dist/checks/specialized/store-specialties-normalization.d.ts.map +1 -0
- package/dist/checks/specialized/store-specialties-normalization.js +126 -0
- package/dist/checks/specialized/store-specialties-normalization.js.map +1 -0
- package/dist/checks/specialized/two-stage-trim-validation.d.ts +16 -0
- package/dist/checks/specialized/two-stage-trim-validation.d.ts.map +1 -0
- package/dist/checks/specialized/two-stage-trim-validation.js +115 -0
- package/dist/checks/specialized/two-stage-trim-validation.js.map +1 -0
- package/dist/checks/specialized/underscore-variable-audit.d.ts +26 -0
- package/dist/checks/specialized/underscore-variable-audit.d.ts.map +1 -0
- package/dist/checks/specialized/underscore-variable-audit.js +219 -0
- package/dist/checks/specialized/underscore-variable-audit.js.map +1 -0
- package/dist/checks/specialized/unified-badge-consistency.d.ts +16 -0
- package/dist/checks/specialized/unified-badge-consistency.d.ts.map +1 -0
- package/dist/checks/specialized/unified-badge-consistency.js +284 -0
- package/dist/checks/specialized/unified-badge-consistency.js.map +1 -0
- package/dist/checks/specialized/validate-integration-enums.d.ts +15 -0
- package/dist/checks/specialized/validate-integration-enums.d.ts.map +1 -0
- package/dist/checks/specialized/validate-integration-enums.js +131 -0
- package/dist/checks/specialized/validate-integration-enums.js.map +1 -0
- package/dist/checks/testing/action-regression.d.ts +23 -0
- package/dist/checks/testing/action-regression.d.ts.map +1 -0
- package/dist/checks/testing/action-regression.js +192 -0
- package/dist/checks/testing/action-regression.js.map +1 -0
- package/dist/checks/testing/critical-api-coverage.d.ts +21 -0
- package/dist/checks/testing/critical-api-coverage.d.ts.map +1 -0
- package/dist/checks/testing/critical-api-coverage.js +158 -0
- package/dist/checks/testing/critical-api-coverage.js.map +1 -0
- package/dist/checks/testing/data-entry-regression-required.d.ts +24 -0
- package/dist/checks/testing/data-entry-regression-required.d.ts.map +1 -0
- package/dist/checks/testing/data-entry-regression-required.js +378 -0
- package/dist/checks/testing/data-entry-regression-required.js.map +1 -0
- package/dist/checks/testing/e2e-best-practices.d.ts +24 -0
- package/dist/checks/testing/e2e-best-practices.d.ts.map +1 -0
- package/dist/checks/testing/e2e-best-practices.js +791 -0
- package/dist/checks/testing/e2e-best-practices.js.map +1 -0
- package/dist/checks/testing/e2e-flake-patterns.d.ts +26 -0
- package/dist/checks/testing/e2e-flake-patterns.d.ts.map +1 -0
- package/dist/checks/testing/e2e-flake-patterns.js +305 -0
- package/dist/checks/testing/e2e-flake-patterns.js.map +1 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.d.ts +25 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.d.ts.map +1 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.js +613 -0
- package/dist/checks/testing/e2e-redundant-visibility-checks.js.map +1 -0
- package/dist/checks/testing/e2e-slow-tests.d.ts +9 -0
- package/dist/checks/testing/e2e-slow-tests.d.ts.map +1 -0
- package/dist/checks/testing/e2e-slow-tests.js +142 -0
- package/dist/checks/testing/e2e-slow-tests.js.map +1 -0
- package/dist/checks/testing/e2e-timeouts.d.ts +9 -0
- package/dist/checks/testing/e2e-timeouts.d.ts.map +1 -0
- package/dist/checks/testing/e2e-timeouts.js +82 -0
- package/dist/checks/testing/e2e-timeouts.js.map +1 -0
- package/dist/checks/testing/integration-e2e-depth.d.ts +20 -0
- package/dist/checks/testing/integration-e2e-depth.d.ts.map +1 -0
- package/dist/checks/testing/integration-e2e-depth.js +575 -0
- package/dist/checks/testing/integration-e2e-depth.js.map +1 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.d.ts +31 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.d.ts.map +1 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.js +1582 -0
- package/dist/checks/testing/playwright-feature-coverage-gaps.js.map +1 -0
- package/dist/checks/testing/playwright-mock-inventory.d.ts +24 -0
- package/dist/checks/testing/playwright-mock-inventory.d.ts.map +1 -0
- package/dist/checks/testing/playwright-mock-inventory.js +380 -0
- package/dist/checks/testing/playwright-mock-inventory.js.map +1 -0
- package/dist/checks/testing/test-coverage-threshold.d.ts +25 -0
- package/dist/checks/testing/test-coverage-threshold.d.ts.map +1 -0
- package/dist/checks/testing/test-coverage-threshold.js +166 -0
- package/dist/checks/testing/test-coverage-threshold.js.map +1 -0
- package/dist/checks/testing/test-flakiness-score.d.ts +27 -0
- package/dist/checks/testing/test-flakiness-score.d.ts.map +1 -0
- package/dist/checks/testing/test-flakiness-score.js +358 -0
- package/dist/checks/testing/test-flakiness-score.js.map +1 -0
- package/dist/checks/testing/test-patterns.d.ts +16 -0
- package/dist/checks/testing/test-patterns.d.ts.map +1 -0
- package/dist/checks/testing/test-patterns.js +156 -0
- package/dist/checks/testing/test-patterns.js.map +1 -0
- package/dist/checks/workflows/a-plus-rating-validation.d.ts +42 -0
- package/dist/checks/workflows/a-plus-rating-validation.d.ts.map +1 -0
- package/dist/checks/workflows/a-plus-rating-validation.js +527 -0
- package/dist/checks/workflows/a-plus-rating-validation.js.map +1 -0
- package/dist/checks/workflows/affected.d.ts +14 -0
- package/dist/checks/workflows/affected.d.ts.map +1 -0
- package/dist/checks/workflows/affected.js +126 -0
- package/dist/checks/workflows/affected.js.map +1 -0
- package/dist/checks/workflows/ai.d.ts +6 -0
- package/dist/checks/workflows/ai.d.ts.map +1 -0
- package/dist/checks/workflows/ai.js +42 -0
- package/dist/checks/workflows/ai.js.map +1 -0
- package/dist/checks/workflows/all.d.ts +31 -0
- package/dist/checks/workflows/all.d.ts.map +1 -0
- package/dist/checks/workflows/all.js +2688 -0
- package/dist/checks/workflows/all.js.map +1 -0
- package/dist/checks/workflows/commit.d.ts +19 -0
- package/dist/checks/workflows/commit.d.ts.map +1 -0
- package/dist/checks/workflows/commit.js +207 -0
- package/dist/checks/workflows/commit.js.map +1 -0
- package/dist/checks/workflows/critical.d.ts +9 -0
- package/dist/checks/workflows/critical.d.ts.map +1 -0
- package/dist/checks/workflows/critical.js +213 -0
- package/dist/checks/workflows/critical.js.map +1 -0
- package/dist/checks/workflows/database-id-validation.d.ts +9 -0
- package/dist/checks/workflows/database-id-validation.d.ts.map +1 -0
- package/dist/checks/workflows/database-id-validation.js +13 -0
- package/dist/checks/workflows/database-id-validation.js.map +1 -0
- package/dist/checks/workflows/deploy.d.ts +20 -0
- package/dist/checks/workflows/deploy.d.ts.map +1 -0
- package/dist/checks/workflows/deploy.js +107 -0
- package/dist/checks/workflows/deploy.js.map +1 -0
- package/dist/checks/workflows/deployment-readiness.d.ts +12 -0
- package/dist/checks/workflows/deployment-readiness.d.ts.map +1 -0
- package/dist/checks/workflows/deployment-readiness.js +403 -0
- package/dist/checks/workflows/deployment-readiness.js.map +1 -0
- package/dist/checks/workflows/dev.d.ts +19 -0
- package/dist/checks/workflows/dev.d.ts.map +1 -0
- package/dist/checks/workflows/dev.js +88 -0
- package/dist/checks/workflows/dev.js.map +1 -0
- package/dist/checks/workflows/development.d.ts +9 -0
- package/dist/checks/workflows/development.d.ts.map +1 -0
- package/dist/checks/workflows/development.js +65 -0
- package/dist/checks/workflows/development.js.map +1 -0
- package/dist/checks/workflows/enterprise.d.ts +10 -0
- package/dist/checks/workflows/enterprise.d.ts.map +1 -0
- package/dist/checks/workflows/enterprise.js +359 -0
- package/dist/checks/workflows/enterprise.js.map +1 -0
- package/dist/checks/workflows/images.d.ts +6 -0
- package/dist/checks/workflows/images.d.ts.map +1 -0
- package/dist/checks/workflows/images.js +58 -0
- package/dist/checks/workflows/images.js.map +1 -0
- package/dist/checks/workflows/naming.d.ts +19 -0
- package/dist/checks/workflows/naming.d.ts.map +1 -0
- package/dist/checks/workflows/naming.js +42 -0
- package/dist/checks/workflows/naming.js.map +1 -0
- package/dist/checks/workflows/performance.d.ts +8 -0
- package/dist/checks/workflows/performance.d.ts.map +1 -0
- package/dist/checks/workflows/performance.js +77 -0
- package/dist/checks/workflows/performance.js.map +1 -0
- package/dist/checks/workflows/pre-deploy.d.ts +6 -0
- package/dist/checks/workflows/pre-deploy.d.ts.map +1 -0
- package/dist/checks/workflows/pre-deploy.js +41 -0
- package/dist/checks/workflows/pre-deploy.js.map +1 -0
- package/dist/checks/workflows/security.d.ts +8 -0
- package/dist/checks/workflows/security.d.ts.map +1 -0
- package/dist/checks/workflows/security.js +71 -0
- package/dist/checks/workflows/security.js.map +1 -0
- package/dist/checks/workflows/supercatch.d.ts +8 -0
- package/dist/checks/workflows/supercatch.d.ts.map +1 -0
- package/dist/checks/workflows/supercatch.js +127 -0
- package/dist/checks/workflows/supercatch.js.map +1 -0
- package/dist/checks/workflows/ui-quality.d.ts +9 -0
- package/dist/checks/workflows/ui-quality.d.ts.map +1 -0
- package/dist/checks/workflows/ui-quality.js +264 -0
- package/dist/checks/workflows/ui-quality.js.map +1 -0
- package/dist/checks/workflows/ui-uniformity.d.ts +18 -0
- package/dist/checks/workflows/ui-uniformity.d.ts.map +1 -0
- package/dist/checks/workflows/ui-uniformity.js +265 -0
- package/dist/checks/workflows/ui-uniformity.js.map +1 -0
- package/dist/checks/workflows/vercel.d.ts +16 -0
- package/dist/checks/workflows/vercel.d.ts.map +1 -0
- package/dist/checks/workflows/vercel.js +173 -0
- package/dist/checks/workflows/vercel.js.map +1 -0
- package/dist/utils/validation-helpers.d.ts +43 -0
- package/dist/utils/validation-helpers.d.ts.map +1 -0
- package/dist/utils/validation-helpers.js +370 -0
- package/dist/utils/validation-helpers.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,791 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* E2E Best Practices Preflight
|
|
5
|
+
*
|
|
6
|
+
* Validates Playwright E2E tests follow best practices:
|
|
7
|
+
* - Proper test organization with test.describe()
|
|
8
|
+
* - Use of semantic selectors (getByRole, getByLabel, getByText)
|
|
9
|
+
* - No hardcoded waits (waitForTimeout)
|
|
10
|
+
* - Proper API stubbing for mutations
|
|
11
|
+
* - Test isolation (no shared state)
|
|
12
|
+
* - Accessibility-first selectors
|
|
13
|
+
* - Proper error handling
|
|
14
|
+
* - Mobile viewport testing
|
|
15
|
+
* - Test tagging for selective runs
|
|
16
|
+
*
|
|
17
|
+
* @see https://playwright.dev/docs/best-practices
|
|
18
|
+
*/
|
|
19
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
22
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
24
|
+
}
|
|
25
|
+
Object.defineProperty(o, k2, desc);
|
|
26
|
+
}) : (function(o, m, k, k2) {
|
|
27
|
+
if (k2 === undefined) k2 = k;
|
|
28
|
+
o[k2] = m[k];
|
|
29
|
+
}));
|
|
30
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
31
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
32
|
+
}) : function(o, v) {
|
|
33
|
+
o["default"] = v;
|
|
34
|
+
});
|
|
35
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
36
|
+
var ownKeys = function(o) {
|
|
37
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
38
|
+
var ar = [];
|
|
39
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
40
|
+
return ar;
|
|
41
|
+
};
|
|
42
|
+
return ownKeys(o);
|
|
43
|
+
};
|
|
44
|
+
return function (mod) {
|
|
45
|
+
if (mod && mod.__esModule) return mod;
|
|
46
|
+
var result = {};
|
|
47
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
48
|
+
__setModuleDefault(result, mod);
|
|
49
|
+
return result;
|
|
50
|
+
};
|
|
51
|
+
})();
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.tags = exports.description = exports.blocking = exports.category = exports.name = exports.id = void 0;
|
|
54
|
+
const fs = __importStar(require("fs"));
|
|
55
|
+
const path = __importStar(require("path"));
|
|
56
|
+
const console_chars_1 = require("../../utils/console-chars");
|
|
57
|
+
const file_cache_1 = require("../../shared/file-cache");
|
|
58
|
+
const universal_progress_reporter_1 = require("../system/universal-progress-reporter");
|
|
59
|
+
// Check metadata
|
|
60
|
+
exports.id = "testing/e2e-best-practices";
|
|
61
|
+
exports.name = "E2e Best Practices";
|
|
62
|
+
exports.category = "testing";
|
|
63
|
+
exports.blocking = true;
|
|
64
|
+
exports.description = "E2E Best Practices Preflight";
|
|
65
|
+
exports.tags = ["testing"];
|
|
66
|
+
const RULES = [
|
|
67
|
+
// ERRORS - These block the build
|
|
68
|
+
{
|
|
69
|
+
name: "no-hardcoded-waits",
|
|
70
|
+
severity: "error",
|
|
71
|
+
check: (content, file) => {
|
|
72
|
+
const issues = [];
|
|
73
|
+
const lines = content.split("\n");
|
|
74
|
+
lines.forEach((line, index) => {
|
|
75
|
+
// Skip lines with ignore comment (check previous line too)
|
|
76
|
+
const prevLine = index > 0 ? lines[index - 1] : "";
|
|
77
|
+
if (line.includes("e2e-best-practices-ignore") ||
|
|
78
|
+
prevLine.includes("e2e-best-practices-ignore")) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
// Match waitForTimeout with any number > 500ms
|
|
82
|
+
const match = line.match(/waitForTimeout\s*\(\s*(\d+)\s*\)/);
|
|
83
|
+
if (match && match[1]) {
|
|
84
|
+
const timeout = parseInt(match[1], 10);
|
|
85
|
+
if (timeout > 500) {
|
|
86
|
+
issues.push({
|
|
87
|
+
file,
|
|
88
|
+
line: index + 1,
|
|
89
|
+
rule: "no-hardcoded-waits",
|
|
90
|
+
severity: "error",
|
|
91
|
+
message: `Hardcoded wait of ${timeout}ms found. Use proper waits instead.`,
|
|
92
|
+
suggestion: "Use waitForSelector, waitForLoadState, or expect().toBeVisible() instead of waitForTimeout",
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
return issues;
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "no-force-click",
|
|
102
|
+
severity: "error",
|
|
103
|
+
check: (content, file) => {
|
|
104
|
+
const issues = [];
|
|
105
|
+
const lines = content.split("\n");
|
|
106
|
+
lines.forEach((line, index) => {
|
|
107
|
+
if (line.includes("force: true") && line.includes("click")) {
|
|
108
|
+
issues.push({
|
|
109
|
+
file,
|
|
110
|
+
line: index + 1,
|
|
111
|
+
rule: "no-force-click",
|
|
112
|
+
severity: "error",
|
|
113
|
+
message: "Using force: true bypasses actionability checks",
|
|
114
|
+
suggestion: "Fix the element visibility/interactability issue instead of using force: true",
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
return issues;
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: "no-page-pause",
|
|
123
|
+
severity: "error",
|
|
124
|
+
check: (content, file) => {
|
|
125
|
+
const issues = [];
|
|
126
|
+
const lines = content.split("\n");
|
|
127
|
+
lines.forEach((line, index) => {
|
|
128
|
+
if (line.includes("page.pause()") && !line.trim().startsWith("//")) {
|
|
129
|
+
issues.push({
|
|
130
|
+
file,
|
|
131
|
+
line: index + 1,
|
|
132
|
+
rule: "no-page-pause",
|
|
133
|
+
severity: "error",
|
|
134
|
+
message: "page.pause() should not be committed to tests",
|
|
135
|
+
suggestion: "Remove page.pause() - it's only for debugging",
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
return issues;
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "no-only-tests",
|
|
144
|
+
severity: "error",
|
|
145
|
+
check: (content, file) => {
|
|
146
|
+
const issues = [];
|
|
147
|
+
const lines = content.split("\n");
|
|
148
|
+
lines.forEach((line, index) => {
|
|
149
|
+
if ((line.includes("test.only(") || line.includes(".only(")) &&
|
|
150
|
+
!line.trim().startsWith("//")) {
|
|
151
|
+
issues.push({
|
|
152
|
+
file,
|
|
153
|
+
line: index + 1,
|
|
154
|
+
rule: "no-only-tests",
|
|
155
|
+
severity: "error",
|
|
156
|
+
message: "test.only() should not be committed",
|
|
157
|
+
suggestion: "Remove .only() to run all tests in CI",
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
return issues;
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "no-skip-without-reason",
|
|
166
|
+
severity: "error",
|
|
167
|
+
check: (content, file) => {
|
|
168
|
+
const issues = [];
|
|
169
|
+
const lines = content.split("\n");
|
|
170
|
+
lines.forEach((line, index) => {
|
|
171
|
+
// Match test.skip( without a comment on same or previous line
|
|
172
|
+
if (line.includes("test.skip(") && !line.trim().startsWith("//")) {
|
|
173
|
+
const prevLine = index > 0 ? (lines[index - 1] ?? "") : "";
|
|
174
|
+
// Allow reasons provided as string literals, even when test.skip(...) spans multiple lines.
|
|
175
|
+
// Examples allowed:
|
|
176
|
+
// test.skip(true, "reason")
|
|
177
|
+
// test.skip(condition, "reason")
|
|
178
|
+
// test.skip("reason", () => { ... })
|
|
179
|
+
const lookahead = [
|
|
180
|
+
lines[index] ?? "",
|
|
181
|
+
lines[index + 1] ?? "",
|
|
182
|
+
lines[index + 2] ?? "",
|
|
183
|
+
lines[index + 3] ?? "",
|
|
184
|
+
].join("\n");
|
|
185
|
+
const hasInlineReasonString = /test\.skip\(([\s\S]{0,240})['"`][^'"`]+['"`]/.test(lookahead);
|
|
186
|
+
if (!line.includes("//") &&
|
|
187
|
+
!line.includes("/*") &&
|
|
188
|
+
!prevLine.includes("//") &&
|
|
189
|
+
!prevLine.includes("TODO") &&
|
|
190
|
+
!prevLine.includes("FIXME")) {
|
|
191
|
+
if (hasInlineReasonString) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
issues.push({
|
|
195
|
+
file,
|
|
196
|
+
line: index + 1,
|
|
197
|
+
rule: "no-skip-without-reason",
|
|
198
|
+
severity: "error",
|
|
199
|
+
message: "test.skip() must have a comment explaining why",
|
|
200
|
+
suggestion: 'Add a comment: // TODO: Skip reason - or use test.skip("reason", ...)',
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
return issues;
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
// WARNINGS - Should be fixed but don't block
|
|
209
|
+
{
|
|
210
|
+
name: "prefer-semantic-selectors",
|
|
211
|
+
severity: "warning",
|
|
212
|
+
check: (content, file) => {
|
|
213
|
+
const issues = [];
|
|
214
|
+
const lines = content.split("\n");
|
|
215
|
+
// Patterns that indicate non-semantic selectors
|
|
216
|
+
const badPatterns = [
|
|
217
|
+
{ pattern: /locator\s*\(\s*['"`]\.[\w-]+['"`]\s*\)/, name: "class selector" },
|
|
218
|
+
{ pattern: /locator\s*\(\s*['"`]#[\w-]+['"`]\s*\)/, name: "ID selector" },
|
|
219
|
+
{
|
|
220
|
+
pattern: /locator\s*\(\s*['"`]div\s*>\s*div/,
|
|
221
|
+
name: "nested div selector",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
pattern: /\$\s*\(\s*['"`]\.[\w-]+['"`]\s*\)/,
|
|
225
|
+
name: "jQuery-style selector",
|
|
226
|
+
},
|
|
227
|
+
];
|
|
228
|
+
lines.forEach((line, index) => {
|
|
229
|
+
// Skip comments
|
|
230
|
+
if (line.trim().startsWith("//") || line.trim().startsWith("*")) {
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
for (const { pattern, name } of badPatterns) {
|
|
234
|
+
if (pattern.test(line)) {
|
|
235
|
+
// Don't flag if it's a fallback after semantic selector
|
|
236
|
+
if (line.includes("getByRole") ||
|
|
237
|
+
line.includes("getByLabel") ||
|
|
238
|
+
line.includes("getByText")) {
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
issues.push({
|
|
242
|
+
file,
|
|
243
|
+
line: index + 1,
|
|
244
|
+
rule: "prefer-semantic-selectors",
|
|
245
|
+
severity: "warning",
|
|
246
|
+
message: `Using ${name} instead of semantic selector`,
|
|
247
|
+
suggestion: "Use getByRole(), getByLabel(), getByText(), or getByTestId() instead",
|
|
248
|
+
});
|
|
249
|
+
break; // One warning per line
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
return issues;
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
name: "require-test-describe",
|
|
258
|
+
severity: "info",
|
|
259
|
+
check: (content, file) => {
|
|
260
|
+
const issues = [];
|
|
261
|
+
// Check if file has test() calls outside of test.describe()
|
|
262
|
+
const hasDescribe = content.includes("test.describe(");
|
|
263
|
+
const hasTopLevelTest = /^test\s*\(/m.test(content);
|
|
264
|
+
if (hasTopLevelTest && !hasDescribe) {
|
|
265
|
+
issues.push({
|
|
266
|
+
file,
|
|
267
|
+
line: 1,
|
|
268
|
+
rule: "require-test-describe",
|
|
269
|
+
severity: "info",
|
|
270
|
+
message: "Tests should be organized in test.describe() blocks",
|
|
271
|
+
suggestion: "Wrap related tests in test.describe('Feature Name', () => { ... })",
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
return issues;
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: "excessive-conditional-checks",
|
|
279
|
+
severity: "info",
|
|
280
|
+
check: (content, file) => {
|
|
281
|
+
const issues = [];
|
|
282
|
+
const lines = content.split("\n");
|
|
283
|
+
// Count conditional element checks
|
|
284
|
+
let conditionalCount = 0;
|
|
285
|
+
const conditionalLines = [];
|
|
286
|
+
lines.forEach((line, index) => {
|
|
287
|
+
// Match patterns like: if (await element.count() > 0)
|
|
288
|
+
if (line.includes(".count()") && (line.includes("if (") || line.includes("if("))) {
|
|
289
|
+
conditionalCount++;
|
|
290
|
+
conditionalLines.push(index + 1);
|
|
291
|
+
}
|
|
292
|
+
// Match patterns like: if (await element.isVisible())
|
|
293
|
+
if (line.includes(".isVisible()") &&
|
|
294
|
+
(line.includes("if (") || line.includes("if(")) &&
|
|
295
|
+
line.includes("await")) {
|
|
296
|
+
conditionalCount++;
|
|
297
|
+
conditionalLines.push(index + 1);
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
// More than 5 conditional checks in a file is a smell
|
|
301
|
+
if (conditionalCount > 5) {
|
|
302
|
+
issues.push({
|
|
303
|
+
file,
|
|
304
|
+
line: conditionalLines[0],
|
|
305
|
+
rule: "excessive-conditional-checks",
|
|
306
|
+
severity: "info",
|
|
307
|
+
message: `${conditionalCount} conditional element checks found. Tests may pass even when elements don't exist.`,
|
|
308
|
+
suggestion: "Use expect().toBeVisible() for required elements. Only use conditionals for truly optional features.",
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
return issues;
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
name: "missing-api-stub",
|
|
316
|
+
severity: "info",
|
|
317
|
+
check: (content, file) => {
|
|
318
|
+
const issues = [];
|
|
319
|
+
// Check if test has form submission but no route stubbing
|
|
320
|
+
const hasFormSubmit = content.includes(".click()") &&
|
|
321
|
+
(content.includes("submit") ||
|
|
322
|
+
content.includes("save") ||
|
|
323
|
+
content.includes("create") ||
|
|
324
|
+
content.includes("delete"));
|
|
325
|
+
const hasRouteStub = content.includes("page.route(") || content.includes("route.fulfill(");
|
|
326
|
+
// Only warn for files that look like they're testing mutations
|
|
327
|
+
if (hasFormSubmit &&
|
|
328
|
+
!hasRouteStub &&
|
|
329
|
+
(file.includes("form") ||
|
|
330
|
+
file.includes("create") ||
|
|
331
|
+
file.includes("edit") ||
|
|
332
|
+
file.includes("registration") ||
|
|
333
|
+
file.includes("checkout"))) {
|
|
334
|
+
issues.push({
|
|
335
|
+
file,
|
|
336
|
+
line: 1,
|
|
337
|
+
rule: "missing-api-stub",
|
|
338
|
+
severity: "info",
|
|
339
|
+
message: "Test appears to submit forms but has no API route stubbing",
|
|
340
|
+
suggestion: "Use page.route() to stub API calls and avoid side effects",
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
return issues;
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
name: "swallowed-catch-errors",
|
|
348
|
+
severity: "warning",
|
|
349
|
+
check: (content, file) => {
|
|
350
|
+
const issues = [];
|
|
351
|
+
const lines = content.split("\n");
|
|
352
|
+
lines.forEach((line, index) => {
|
|
353
|
+
// Match patterns like: .catch(() => {}) or .catch(() => false)
|
|
354
|
+
const hasCatch = /\.catch\s*\(\s*\(\s*\)\s*=>\s*(\{\s*\}|false|null|undefined|true)\s*\)/.test(line) ||
|
|
355
|
+
/\.catch\s*\(\s*\(\s*\)\s*=>\s*\{\s*\}\s*\)/.test(line);
|
|
356
|
+
if (!hasCatch)
|
|
357
|
+
return;
|
|
358
|
+
// Get previous lines for context (handle multi-line patterns)
|
|
359
|
+
const prevLine = index > 0 ? (lines[index - 1] ?? "") : "";
|
|
360
|
+
const prevPrevLine = index > 1 ? (lines[index - 2] ?? "") : "";
|
|
361
|
+
const context = prevPrevLine + " " + prevLine + " " + line;
|
|
362
|
+
// ALLOWED: .isVisible().catch(() => false) - this is a valid conditional check pattern
|
|
363
|
+
// ALLOWED: .isEnabled().catch(() => false)
|
|
364
|
+
// ALLOWED: .isChecked().catch(() => false)
|
|
365
|
+
// ALLOWED: .isDisabled().catch(() => false)
|
|
366
|
+
// ALLOWED: .waitFor().catch(() => {}) - this is a valid timeout-safe pattern
|
|
367
|
+
// ALLOWED: .waitForLoadState().catch(() => {})
|
|
368
|
+
// ALLOWED: .waitForNavigation().catch(() => {})
|
|
369
|
+
// ALLOWED: .waitForURL().catch(() => {})
|
|
370
|
+
// ALLOWED: .waitForResponse().catch(() => {})
|
|
371
|
+
// ALLOWED: .waitForSelector().catch(() => {})
|
|
372
|
+
// Also check previous lines for multi-line patterns
|
|
373
|
+
const conditionalMethods = /\.(isVisible|isEnabled|isChecked|isDisabled|isHidden|isEditable|count)\s*\(/;
|
|
374
|
+
const waitForMethods = /\.(waitFor|waitForLoadState|waitForNavigation|waitForURL|waitForResponse|waitForSelector)\s*\(/;
|
|
375
|
+
const isConditionalCheck = conditionalMethods.test(line) ||
|
|
376
|
+
conditionalMethods.test(prevLine) ||
|
|
377
|
+
conditionalMethods.test(prevPrevLine);
|
|
378
|
+
const isWaitForPattern = waitForMethods.test(line) ||
|
|
379
|
+
waitForMethods.test(prevLine) ||
|
|
380
|
+
waitForMethods.test(prevPrevLine);
|
|
381
|
+
if (isConditionalCheck || isWaitForPattern)
|
|
382
|
+
return;
|
|
383
|
+
// BLOCKED: expect().toBeVisible().catch(() => {}) - assertions should NOT be swallowed
|
|
384
|
+
const isSwallowedAssertion = /expect\s*\(/.test(context);
|
|
385
|
+
// BLOCKED: Generic swallowed catches that aren't on isVisible-style checks
|
|
386
|
+
if (isSwallowedAssertion) {
|
|
387
|
+
issues.push({
|
|
388
|
+
file,
|
|
389
|
+
line: index + 1,
|
|
390
|
+
rule: "swallowed-catch-errors",
|
|
391
|
+
severity: "warning",
|
|
392
|
+
message: "Errors are silently swallowed with .catch(() => {}). Test may pass incorrectly.",
|
|
393
|
+
suggestion: "Remove .catch() from assertions. If checking element existence, use .isVisible().catch(() => false) pattern.",
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
return issues;
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
name: "visibility-only-test",
|
|
402
|
+
severity: "warning",
|
|
403
|
+
check: (content, file) => {
|
|
404
|
+
const issues = [];
|
|
405
|
+
// Split into individual tests
|
|
406
|
+
const testBlocks = content.split(/\btest\s*\(/);
|
|
407
|
+
testBlocks.forEach((block, blockIndex) => {
|
|
408
|
+
if (blockIndex === 0)
|
|
409
|
+
return; // Skip before first test
|
|
410
|
+
// Extract test name from the block
|
|
411
|
+
const nameMatch = block.match(/^["'`]([^"'`]+)["'`]/);
|
|
412
|
+
const testName = nameMatch ? nameMatch[1] : `test #${blockIndex}`;
|
|
413
|
+
// Get just this test's body (up to the next test or end)
|
|
414
|
+
const testBody = block.split(/\btest\s*\(/)[0] ?? "";
|
|
415
|
+
// Count meaningful actions vs visibility-only checks
|
|
416
|
+
const hasClick = testBody.includes(".click(");
|
|
417
|
+
const hasFill = testBody.includes(".fill(");
|
|
418
|
+
const hasSelect = testBody.includes(".selectOption(");
|
|
419
|
+
const hasCheck = testBody.includes(".check(") || testBody.includes(".uncheck(");
|
|
420
|
+
const hasPress = testBody.includes(".press(");
|
|
421
|
+
const hasAction = hasClick || hasFill || hasSelect || hasCheck || hasPress;
|
|
422
|
+
// Count toBeVisible assertions
|
|
423
|
+
const visibilityAssertions = (testBody.match(/toBeVisible\s*\(/g) ?? []).length;
|
|
424
|
+
const totalExpects = (testBody.match(/expect\s*\(/g) ?? []).length;
|
|
425
|
+
// Skip if test is marked as fixme or skip
|
|
426
|
+
if (testBody.includes("test.fixme") || testBody.includes("test.skip")) {
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
// Flag tests that ONLY check visibility without any real interactions
|
|
430
|
+
if (!hasAction && visibilityAssertions > 0 && visibilityAssertions === totalExpects) {
|
|
431
|
+
// Check if test name suggests it's intentionally a "display" test
|
|
432
|
+
const isDisplayTest = /\b(display|render|show|visible|appear|load)\b/i.test(testName);
|
|
433
|
+
if (!isDisplayTest) {
|
|
434
|
+
issues.push({
|
|
435
|
+
file,
|
|
436
|
+
line: 1,
|
|
437
|
+
rule: "visibility-only-test",
|
|
438
|
+
severity: "info",
|
|
439
|
+
message: `Test "${testName}" only checks visibility without any user interactions (click, fill, etc.)`,
|
|
440
|
+
suggestion: "Add meaningful interactions (click buttons, fill forms) or rename test to indicate it's a display/render test.",
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
return issues;
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
name: "conditional-action-guards",
|
|
450
|
+
severity: "info",
|
|
451
|
+
check: (content, file) => {
|
|
452
|
+
const issues = [];
|
|
453
|
+
const lines = content.split("\n");
|
|
454
|
+
// Track consecutive conditional guards
|
|
455
|
+
let guardCount = 0;
|
|
456
|
+
let firstGuardLine = 0;
|
|
457
|
+
lines.forEach((line, index) => {
|
|
458
|
+
// Match patterns like: if (await element.isVisible()) or if (await btn.isVisible() && !(await btn.isDisabled()))
|
|
459
|
+
const isConditionalAction = /if\s*\(\s*await\s+[^)]+\.(isVisible|isEnabled|isDisabled|count)\s*\(/.test(line) &&
|
|
460
|
+
!line.trim().startsWith("//");
|
|
461
|
+
if (isConditionalAction) {
|
|
462
|
+
if (guardCount === 0) {
|
|
463
|
+
firstGuardLine = index + 1;
|
|
464
|
+
}
|
|
465
|
+
guardCount++;
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
// More than 2 conditional action guards is a code smell - tests can pass without doing anything
|
|
469
|
+
if (guardCount > 2) {
|
|
470
|
+
issues.push({
|
|
471
|
+
file,
|
|
472
|
+
line: firstGuardLine,
|
|
473
|
+
rule: "conditional-action-guards",
|
|
474
|
+
severity: "info",
|
|
475
|
+
message: `${guardCount} conditional guards found (if await isVisible/isEnabled). Tests may pass without executing core actions.`,
|
|
476
|
+
suggestion: "Remove if-guards around expected elements. Use expect().toBeVisible() for required elements. Tests should fail if expected elements don't exist.",
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
return issues;
|
|
480
|
+
},
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: "fixme-test-accumulation",
|
|
484
|
+
severity: "info",
|
|
485
|
+
check: (content, file) => {
|
|
486
|
+
const issues = [];
|
|
487
|
+
// Count fixme tests
|
|
488
|
+
const fixmeCount = (content.match(/\btest\.fixme\s*\(/g) ?? []).length;
|
|
489
|
+
const totalTests = (content.match(/\btest\s*\(/g) ?? []).length + fixmeCount;
|
|
490
|
+
// Flag if more than 50% of tests are fixme
|
|
491
|
+
if (fixmeCount > 0 && totalTests > 0) {
|
|
492
|
+
const fixmePercentage = (fixmeCount / totalTests) * 100;
|
|
493
|
+
if (fixmePercentage > 50) {
|
|
494
|
+
issues.push({
|
|
495
|
+
file,
|
|
496
|
+
line: 1,
|
|
497
|
+
rule: "fixme-test-accumulation",
|
|
498
|
+
severity: "info",
|
|
499
|
+
message: `${fixmeCount}/${totalTests} tests (${fixmePercentage.toFixed(0)}%) are marked as fixme`,
|
|
500
|
+
suggestion: "Fix or remove stale fixme tests. If tests are permanently broken, delete them and create new tests.",
|
|
501
|
+
});
|
|
502
|
+
}
|
|
503
|
+
else if (fixmeCount >= 3) {
|
|
504
|
+
issues.push({
|
|
505
|
+
file,
|
|
506
|
+
line: 1,
|
|
507
|
+
rule: "fixme-test-accumulation",
|
|
508
|
+
severity: "info",
|
|
509
|
+
message: `${fixmeCount} tests are marked as fixme`,
|
|
510
|
+
suggestion: "Consider fixing or removing stale fixme tests to maintain test health.",
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
return issues;
|
|
515
|
+
},
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
name: "missing-mobile-test",
|
|
519
|
+
severity: "info",
|
|
520
|
+
check: (content, file) => {
|
|
521
|
+
const issues = [];
|
|
522
|
+
// Check if file has any viewport changes for mobile
|
|
523
|
+
const hasMobileViewport = content.includes("375") ||
|
|
524
|
+
content.includes("mobile") ||
|
|
525
|
+
content.includes("setViewportSize");
|
|
526
|
+
// Only check UI-focused test files
|
|
527
|
+
const isUITest = file.includes("user-flows") ||
|
|
528
|
+
file.includes("marketplace") ||
|
|
529
|
+
file.includes("checkout") ||
|
|
530
|
+
file.includes("content");
|
|
531
|
+
if (isUITest && !hasMobileViewport) {
|
|
532
|
+
issues.push({
|
|
533
|
+
file,
|
|
534
|
+
line: 1,
|
|
535
|
+
rule: "missing-mobile-test",
|
|
536
|
+
severity: "info",
|
|
537
|
+
message: "No mobile viewport tests found",
|
|
538
|
+
suggestion: 'Add at least one test with page.setViewportSize({ width: 375, height: 667 }) or test.describe("Mobile", ...)',
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
return issues;
|
|
542
|
+
},
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
name: "missing-error-state-test",
|
|
546
|
+
severity: "info",
|
|
547
|
+
check: (content, file) => {
|
|
548
|
+
const issues = [];
|
|
549
|
+
// Check if file tests error states
|
|
550
|
+
const hasErrorTest = content.includes("error") ||
|
|
551
|
+
content.includes("fail") ||
|
|
552
|
+
content.includes("invalid") ||
|
|
553
|
+
content.includes("status: 4") ||
|
|
554
|
+
content.includes("status: 5");
|
|
555
|
+
// Only check files that likely need error testing
|
|
556
|
+
const needsErrorTest = file.includes("form") ||
|
|
557
|
+
file.includes("checkout") ||
|
|
558
|
+
file.includes("registration") ||
|
|
559
|
+
file.includes("login") ||
|
|
560
|
+
file.includes("password");
|
|
561
|
+
if (needsErrorTest && !hasErrorTest) {
|
|
562
|
+
issues.push({
|
|
563
|
+
file,
|
|
564
|
+
line: 1,
|
|
565
|
+
rule: "missing-error-state-test",
|
|
566
|
+
severity: "info",
|
|
567
|
+
message: "No error state tests found",
|
|
568
|
+
suggestion: "Add tests for validation errors, API failures, and edge cases",
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
return issues;
|
|
572
|
+
},
|
|
573
|
+
},
|
|
574
|
+
// INFO - Best practice suggestions
|
|
575
|
+
{
|
|
576
|
+
name: "suggest-test-tags",
|
|
577
|
+
severity: "info",
|
|
578
|
+
check: (content, file) => {
|
|
579
|
+
const issues = [];
|
|
580
|
+
// Check if file uses test tags
|
|
581
|
+
const hasTestTags = content.includes("@smoke") ||
|
|
582
|
+
content.includes("@regression") ||
|
|
583
|
+
content.includes("@critical") ||
|
|
584
|
+
content.includes("test.describe.configure") ||
|
|
585
|
+
content.includes("{ tag:");
|
|
586
|
+
if (!hasTestTags) {
|
|
587
|
+
issues.push({
|
|
588
|
+
file,
|
|
589
|
+
line: 1,
|
|
590
|
+
rule: "suggest-test-tags",
|
|
591
|
+
severity: "info",
|
|
592
|
+
message: "Consider adding test tags for selective test runs",
|
|
593
|
+
suggestion: 'Use test("name", { tag: "@smoke" }, async () => {}) or test.describe.configure({ tag: "@regression" })',
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
return issues;
|
|
597
|
+
},
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
name: "suggest-parallel-mode",
|
|
601
|
+
severity: "info",
|
|
602
|
+
check: (content, file) => {
|
|
603
|
+
const issues = [];
|
|
604
|
+
// Check if file configures parallel mode
|
|
605
|
+
const hasParallelConfig = content.includes("test.describe.configure") && content.includes("parallel");
|
|
606
|
+
// Count number of tests
|
|
607
|
+
const testCount = (content.match(/\btest\s*\(/g) || []).length;
|
|
608
|
+
// Suggest parallel for files with many tests
|
|
609
|
+
if (testCount > 10 && !hasParallelConfig) {
|
|
610
|
+
issues.push({
|
|
611
|
+
file,
|
|
612
|
+
line: 1,
|
|
613
|
+
rule: "suggest-parallel-mode",
|
|
614
|
+
severity: "info",
|
|
615
|
+
message: `File has ${testCount} tests but no parallel configuration`,
|
|
616
|
+
suggestion: 'Add test.describe.configure({ mode: "parallel" }) for faster execution',
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
return issues;
|
|
620
|
+
},
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
name: "suggest-page-object",
|
|
624
|
+
severity: "info",
|
|
625
|
+
check: (content, file) => {
|
|
626
|
+
const issues = [];
|
|
627
|
+
// Count repeated locator patterns
|
|
628
|
+
const locatorPatterns = content.match(/page\.(getBy|locator)\([^)]+\)/g) || [];
|
|
629
|
+
const uniquePatterns = new Set(locatorPatterns);
|
|
630
|
+
// If same locator used 3+ times, suggest page object
|
|
631
|
+
const patternCounts = new Map();
|
|
632
|
+
locatorPatterns.forEach((p) => {
|
|
633
|
+
patternCounts.set(p, (patternCounts.get(p) || 0) + 1);
|
|
634
|
+
});
|
|
635
|
+
const repeatedPatterns = Array.from(patternCounts.entries()).filter(([, count]) => (count ?? 0) >= 3);
|
|
636
|
+
if (repeatedPatterns.length >= 3) {
|
|
637
|
+
issues.push({
|
|
638
|
+
file,
|
|
639
|
+
line: 1,
|
|
640
|
+
rule: "suggest-page-object",
|
|
641
|
+
severity: "info",
|
|
642
|
+
message: `${repeatedPatterns.length} locators are repeated 3+ times`,
|
|
643
|
+
suggestion: "Consider extracting to a Page Object Model for better maintainability",
|
|
644
|
+
});
|
|
645
|
+
}
|
|
646
|
+
return issues;
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
name: "missing-test-documentation",
|
|
651
|
+
severity: "info",
|
|
652
|
+
check: (content, file) => {
|
|
653
|
+
const issues = [];
|
|
654
|
+
// Check for JSDoc comment at top of file
|
|
655
|
+
const hasFileDoc = content.trimStart().startsWith("/**") || content.trimStart().startsWith("/*");
|
|
656
|
+
if (!hasFileDoc) {
|
|
657
|
+
issues.push({
|
|
658
|
+
file,
|
|
659
|
+
line: 1,
|
|
660
|
+
rule: "missing-test-documentation",
|
|
661
|
+
severity: "info",
|
|
662
|
+
message: "Test file missing documentation header",
|
|
663
|
+
suggestion: "Add a JSDoc comment describing what the test file covers",
|
|
664
|
+
});
|
|
665
|
+
}
|
|
666
|
+
return issues;
|
|
667
|
+
},
|
|
668
|
+
},
|
|
669
|
+
];
|
|
670
|
+
// CACHED FILE LISTS - Scan once, use everywhere
|
|
671
|
+
let _cachedE2ESpecFiles = null;
|
|
672
|
+
async function getE2ESpecFiles() {
|
|
673
|
+
if (!_cachedE2ESpecFiles) {
|
|
674
|
+
_cachedE2ESpecFiles = await file_cache_1.fileCache.getE2ESpecFiles();
|
|
675
|
+
}
|
|
676
|
+
return _cachedE2ESpecFiles;
|
|
677
|
+
}
|
|
678
|
+
async function main() {
|
|
679
|
+
const reporter = (0, universal_progress_reporter_1.createUniversalProgressReporter)(path.basename(__filename, ".ts"));
|
|
680
|
+
const args = process.argv.slice(2);
|
|
681
|
+
const isBlocking = !args.includes("--warn");
|
|
682
|
+
const isVerbose = args.includes("--verbose");
|
|
683
|
+
const specificRule = args.find((a) => a.startsWith("--rule="))?.split("=")[1];
|
|
684
|
+
console.log("\nš E2E BEST PRACTICES PREFLIGHT");
|
|
685
|
+
console.log((0, console_chars_1.createDivider)(60, "heavy"));
|
|
686
|
+
// Find all E2E test files
|
|
687
|
+
const testFiles = await getE2ESpecFiles();
|
|
688
|
+
console.log(`Found ${testFiles.length} E2E test files\n`);
|
|
689
|
+
const allIssues = [];
|
|
690
|
+
for (const file of testFiles) {
|
|
691
|
+
const content = fs.readFileSync(file, "utf8");
|
|
692
|
+
const relativePath = path.relative(process.cwd(), file);
|
|
693
|
+
for (const rule of RULES) {
|
|
694
|
+
// Skip if specific rule requested and this isn't it
|
|
695
|
+
if (specificRule && rule.name !== specificRule) {
|
|
696
|
+
continue;
|
|
697
|
+
}
|
|
698
|
+
const issues = rule.check(content, relativePath);
|
|
699
|
+
allIssues.push(...issues);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
// Group by severity
|
|
703
|
+
const errors = allIssues.filter((i) => i.severity === "error");
|
|
704
|
+
const warnings = allIssues.filter((i) => i.severity === "warning");
|
|
705
|
+
const infos = allIssues.filter((i) => i.severity === "info");
|
|
706
|
+
// Print results
|
|
707
|
+
if (errors.length > 0) {
|
|
708
|
+
console.log(`${console_chars_1.emoji.error} ERRORS (blocking):\n`);
|
|
709
|
+
errors.forEach((i) => {
|
|
710
|
+
console.log(` ${i.file}:${i.line}`);
|
|
711
|
+
console.log(` Rule: ${i.rule}`);
|
|
712
|
+
console.log(` ${i.message}`);
|
|
713
|
+
if (i.suggestion) {
|
|
714
|
+
console.log(` ${console_chars_1.emoji.hint} ${i.suggestion}`);
|
|
715
|
+
}
|
|
716
|
+
console.log();
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
if (warnings.length > 0) {
|
|
720
|
+
console.log(`${console_chars_1.emoji.warning} WARNINGS:\n`);
|
|
721
|
+
if (isVerbose) {
|
|
722
|
+
warnings.forEach((i) => {
|
|
723
|
+
console.log(` ${i.file}:${i.line}`);
|
|
724
|
+
console.log(` Rule: ${i.rule}`);
|
|
725
|
+
console.log(` ${i.message}`);
|
|
726
|
+
if (i.suggestion) {
|
|
727
|
+
console.log(` ${console_chars_1.emoji.hint} ${i.suggestion}`);
|
|
728
|
+
}
|
|
729
|
+
console.log();
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
else {
|
|
733
|
+
// Group by rule
|
|
734
|
+
const byRule = new Map();
|
|
735
|
+
warnings.forEach((i) => {
|
|
736
|
+
const list = byRule.get(i.rule) || [];
|
|
737
|
+
list.push(i);
|
|
738
|
+
byRule.set(i.rule, list);
|
|
739
|
+
});
|
|
740
|
+
byRule.forEach((issues, rule) => {
|
|
741
|
+
console.log(` ${rule}: ${issues.length} issues`);
|
|
742
|
+
// Show first 3 examples
|
|
743
|
+
issues.slice(0, 3).forEach((i) => {
|
|
744
|
+
console.log(` - ${i.file}:${i.line}`);
|
|
745
|
+
});
|
|
746
|
+
if (issues.length > 3) {
|
|
747
|
+
console.log(` ... and ${issues.length - 3} more`);
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
console.log();
|
|
752
|
+
}
|
|
753
|
+
if (infos.length > 0 && isVerbose) {
|
|
754
|
+
console.log(`${console_chars_1.emoji.info} INFO (suggestions):\n`);
|
|
755
|
+
// Group by rule
|
|
756
|
+
const byRule = new Map();
|
|
757
|
+
infos.forEach((i) => {
|
|
758
|
+
const list = byRule.get(i.rule) || [];
|
|
759
|
+
list.push(i);
|
|
760
|
+
byRule.set(i.rule, list);
|
|
761
|
+
});
|
|
762
|
+
byRule.forEach((issues, rule) => {
|
|
763
|
+
console.log(` ${rule}: ${issues.length} files`);
|
|
764
|
+
});
|
|
765
|
+
console.log();
|
|
766
|
+
}
|
|
767
|
+
// Summary
|
|
768
|
+
console.log((0, console_chars_1.createDivider)(60, "heavy"));
|
|
769
|
+
console.log(`${console_chars_1.emoji.chart} SUMMARY`);
|
|
770
|
+
console.log(` Test files scanned: ${testFiles.length}`);
|
|
771
|
+
console.log(` Errors: ${errors.length}`);
|
|
772
|
+
console.log(` Warnings: ${warnings.length}`);
|
|
773
|
+
console.log(` Info: ${infos.length}`);
|
|
774
|
+
if (errors.length > 0 && isBlocking) {
|
|
775
|
+
console.log(`\n${console_chars_1.emoji.error} E2E BEST PRACTICES CHECK FAILED`);
|
|
776
|
+
console.log(" Fix the errors above before committing.\n");
|
|
777
|
+
process.exit(1);
|
|
778
|
+
}
|
|
779
|
+
if (warnings.length > 0) {
|
|
780
|
+
console.log(`\n${console_chars_1.emoji.warning} E2E BEST PRACTICES CHECK PASSED WITH WARNINGS`);
|
|
781
|
+
console.log(" Consider fixing the warnings for better test quality.\n");
|
|
782
|
+
}
|
|
783
|
+
else {
|
|
784
|
+
console.log(`\n${console_chars_1.emoji.success} E2E BEST PRACTICES CHECK PASSED\n`);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
main().catch((err) => {
|
|
788
|
+
console.error("Error:", err);
|
|
789
|
+
process.exit(1);
|
|
790
|
+
});
|
|
791
|
+
//# sourceMappingURL=e2e-best-practices.js.map
|