Enable decorators tests on flow and typescript parser (#17484)
This commit is contained in:
1 parent
97121fb2ca
commit
2c7f02a7ab
3 files changed
+159
-13
No files matched your search
@@ -109,6 +109,12 @@ const hermesDisabledTests = new Set([
|
||||
"js/comments/function-declaration.js",
|
||||
].map((file) => path.join(__dirname, "../format", file)),
|
||||
]);
|
||||
const flowDisabledTests = new Set(
|
||||
[
|
||||
// Parsing to different ASTs
|
||||
"js/decorators/member-expression.js",
|
||||
].map((file) => path.join(__dirname, "../format", file)),
|
||||
);
|
||||
|
||||
const isUnstable = (filename, options) => {
|
||||
const testFunction = unstableTests.get(filename);
|
||||
@@ -329,6 +335,7 @@ function runFormatTest(fixtures, parsers, options) {
|
||||
(currentParser === "oxc" && oxcDisabledTests.has(filename)) ||
|
||||
(currentParser === "oxc-ts" && oxcTsDisabledTests.has(filename)) ||
|
||||
(currentParser === "hermes" && hermesDisabledTests.has(filename)) ||
|
||||
(currentParser === "flow" && flowDisabledTests.has(filename)) ||
|
||||
(currentParser === "babel-ts" && babelTsDisabledTests.has(filename))
|
||||
) {
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user