From 7bc0c0469e401ee3fa04e18c075e5e852aaf2865 Mon Sep 17 00:00:00 2001 From: leaysgur <6259812+leaysgur@users.noreply.github.com> Date: Fri, 16 Oct 2026 12:16:17 +0000 Subject: [PATCH] test(oxfmt): stop counting both-error conformance cases as passed (#27826) - Exclude Prettier's `_errors_/` and `range/` fixtures from `js-in-vue` - Rename `issue-19667.ts` to `.tsx` so it parses - Treat both sides failing to parse as a failure --- .../css-in-js/{issue-19667.ts => issue-19667.tsx} | 0 apps/oxfmt/conformance/run.ts | 10 ++++++++-- apps/oxfmt/conformance/snapshots/conformance.snap.md | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) rename apps/oxfmt/conformance/fixtures/edge-cases/css-in-js/{issue-19667.ts => issue-19667.tsx} (100%) diff --git a/apps/oxfmt/conformance/fixtures/edge-cases/css-in-js/issue-19667.ts b/apps/oxfmt/conformance/fixtures/edge-cases/css-in-js/issue-19667.tsx similarity index 100% rename from apps/oxfmt/conformance/fixtures/edge-cases/css-in-js/issue-19667.ts rename to apps/oxfmt/conformance/fixtures/edge-cases/css-in-js/issue-19667.tsx diff --git a/apps/oxfmt/conformance/run.ts b/apps/oxfmt/conformance/run.ts index ad0f0f2cfc..8f3ecc20f9 100644 --- a/apps/oxfmt/conformance/run.ts +++ b/apps/oxfmt/conformance/run.ts @@ -44,7 +44,12 @@ const categories: Category[] = [ { name: "js-in-vue", sources: [ - { dir: join(EXTERNALS_DIR, "prettier"), ext: ".vue" }, + { + dir: join(EXTERNALS_DIR, "prettier"), + ext: ".vue", + // Parser error messages and range formatting are not formatter concerns + excludes: ["/_errors_/", "vue/range/"], + }, { dir: join(EXTERNALS_DIR, "vue-vben-admin"), ext: ".vue" }, { dir: join(FIXTURES_DIR, "edge-cases", "js-in-vue") }, ], @@ -381,7 +386,8 @@ async function runCategory(category: Category, fixtures: Fixture[]): Promise