Skip to content

Commit

Permalink
Disable a test (#13159)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jul 23, 2022
1 parent f79c8d5 commit 26cf77a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 57 deletions.
2 changes: 2 additions & 0 deletions tests/config/format-test.js
Expand Up @@ -52,6 +52,8 @@ const espreeDisabledTests = new Set(
[
// These tests only work for `babel`
"comments-closure-typecast",
// Unknown reason https://github.com/babel/babel/pull/14779#discussion_r928137651
"strings",
].map((directory) => path.join(__dirname, "../format/js", directory))
);
const acornDisabledTests = espreeDisabledTests;
Expand Down
44 changes: 0 additions & 44 deletions tests/format/js/strings/__snapshots__/jsfmt.spec.js.snap
@@ -1,49 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`non-octal-eight-and-nine.js [acorn] format 1`] = `
"Invalid escape sequence (3:3)
1 | // https://github.com/babel/babel/pull/11852
2 |
> 3 | "\\8","\\9";
| ^
4 | () => {
5 | "use strict";
6 | "\\8", "\\9";"
`;
exports[`non-octal-eight-and-nine.js [espree] format 1`] = `
"Invalid escape sequence (3:3)
1 | // https://github.com/babel/babel/pull/11852
2 |
> 3 | "\\8","\\9";
| ^
4 | () => {
5 | "use strict";
6 | "\\8", "\\9";"
`;
exports[`non-octal-eight-and-nine.js - {"trailingComma":"all"} [acorn] format 1`] = `
"Invalid escape sequence (3:3)
1 | // https://github.com/babel/babel/pull/11852
2 |
> 3 | "\\8","\\9";
| ^
4 | () => {
5 | "use strict";
6 | "\\8", "\\9";"
`;
exports[`non-octal-eight-and-nine.js - {"trailingComma":"all"} [espree] format 1`] = `
"Invalid escape sequence (3:3)
1 | // https://github.com/babel/babel/pull/11852
2 |
> 3 | "\\8","\\9";
| ^
4 | () => {
5 | "use strict";
6 | "\\8", "\\9";"
`;
exports[`non-octal-eight-and-nine.js - {"trailingComma":"all"} format 1`] = `
====================================options=====================================
parsers: ["babel", "flow"]
Expand Down
15 changes: 2 additions & 13 deletions tests/format/js/strings/jsfmt.spec.js
@@ -1,13 +1,2 @@
run_spec(import.meta, ["babel", "flow"], {
errors: {
acorn: ["non-octal-eight-and-nine.js"],
espree: ["non-octal-eight-and-nine.js"],
},
});
run_spec(import.meta, ["babel", "flow"], {
trailingComma: "all",
errors: {
acorn: ["non-octal-eight-and-nine.js"],
espree: ["non-octal-eight-and-nine.js"],
},
});
run_spec(import.meta, ["babel", "flow"]);
run_spec(import.meta, ["babel", "flow"], { trailingComma: "all" });

0 comments on commit 26cf77a

Please sign in to comment.