Move 3rd-party tests into languages (#18746)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-01-25 11:23:53 +08:00
1 parent ed5bb0bf62
commit b23044ec1b
2109 files changed
+3 -15

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ In addition to Prettier's formatting options, can contain the `errors` property
The implementation of `runFormatTest` can be found in [`tests/config/run-format-test.js`](tests/config/run-format-test.js).
`tests/format/flow-repo/` contains the Flow test suite and is not supposed to be edited by hand. To update it, clone the Flow repo next to the Prettier repo and run: `node scripts/sync-flow-tests.cjs ../flow/tests/`.
`tests/format/flow/flow-repo/` contains the Flow test suite and is not supposed to be edited by hand. To update it, clone the Flow repo next to the Prettier repo and run: `node scripts/sync-flow-tests.cjs ../flow/tests/`.
## Debugging
+1 -1
View File
@@ -7,7 +7,7 @@ const fastGlob = require("fast-glob");
const DEFAULT_SPEC_CONTENT = "runFormatTest(import.meta);\n";
const SPEC_FILE_NAME = "format.test.js";
const FLOW_TESTS_DIR = path.join(__dirname, "../tests/format/flow-repo");
const FLOW_TESTS_DIR = path.join(__dirname, "../tests/format/flow/flow-repo");
function tryParse(file, content) {
// Keep this sync with `/src/language-js/parse/flow.js`
+1 -1
View File
@@ -90,7 +90,7 @@ const disabledTests = new Map(
// Not supported
"flow/comments/",
"flow-repo/union_new/",
"flow/flow-repo/union_new/",
// Different result
"flow/hook/comments-before-arrow.js",
-12
View File
@@ -30,14 +30,6 @@ const categoryParsers = new Map([
extensions: [".js", ".cjs", ".mjs"],
},
],
[
"flow-repo",
{
parsers: ["flow", "babel-flow"],
verifyParsers: ["flow", "babel-flow", "typescript", "babel-ts"],
extensions: [".js", ".cjs", ".mjs"],
},
],
[
"graphql",
{ parsers: ["graphql"], verifyParsers: [], extensions: [".graphql"] },
@@ -140,10 +132,6 @@ const categoryParsers = new Map([
extensions: [".scss"],
},
],
[
"stylefmt-repo",
{ parsers: ["css", "scss"], verifyParsers: [], extensions: [".css"] },
],
[
"typescript",
{
Loaded 100 of 2109 files, more files were not shown because too many files have changed in this diff. Show more