Move 3rd-party tests into languages (#18746)
This commit is contained in:
1 parent
ed5bb0bf62
commit
b23044ec1b
2109 files changed
+3
-15
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
{
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Vendored
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 2109 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user