ci(pr): prettier + ignore local tool artifacts in format check

This commit is contained in:
Francisco Ignácio Fontoura Solla 2026-07-31 20:53:22 -03:00
parent 9d810d1564
commit 42d1a7be93
3 changed files with 9 additions and 3 deletions

View file

@ -4,6 +4,10 @@ out/
build/
playwright-report/
test-results/
.playwright-cli/
.aider.chat.history.md
.aider.input.history
.aider.tags.cache.v4/
data/
pnpm-lock.yaml
.impeccable/hook.cache.json

View file

@ -272,7 +272,9 @@ export function findUncoveredE2eDomainPrefixes(
const missing = []
const covered = []
for (const path of required) {
const hit = prefixes.some((prefix) => prefix === path || prefix.startsWith(`${path}/`) || path.startsWith(prefix))
const hit = prefixes.some(
(prefix) => prefix === path || prefix.startsWith(`${path}/`) || path.startsWith(prefix),
)
if (hit) covered.push(path)
else missing.push(path)
}

View file

@ -1,11 +1,12 @@
// @vitest-environment node
import { readFileSync, readdirSync } from 'node:fs'
import { readdirSync, readFileSync } from 'node:fs'
import { join } from 'node:path'
import { fileURLToPath } from 'node:url'
import { describe, expect, it } from 'vitest'
import { checkTestLocations } from '../../scripts/check-test-locations.mjs'
import { E2E_AFFECTED_MANIFEST } from '../../scripts/lib/e2e-affected-manifest.mjs'
import {
CANONICAL_E2E_SPEC_SUFFIX,
@ -18,7 +19,6 @@ import {
isCanonicalSpecPath,
isMisplacedSpecPath,
} from '../../scripts/lib/test-affected-core.mjs'
import { checkTestLocations } from '../../scripts/check-test-locations.mjs'
const repoRoot = join(fileURLToPath(new URL('.', import.meta.url)), '../..')