Update babel to v8.0.0-rc.4 (#19108)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
1 parent
47050e64fb
commit
5d387cb75c
6 files changed
+91
-75
No files matched your search
@@ -1,24 +1,24 @@
|
||||
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
||||
|
||||
exports[`snippet: #0 format[babel] 1`] = `
|
||||
"Unexpected token (1:8)
|
||||
"\`import()\` requires exactly one or two arguments. (1:1)
|
||||
> 1 | import();
|
||||
| ^
|
||||
Cause: Unexpected token (1:7)"
|
||||
| ^
|
||||
Cause: \`import()\` requires exactly one or two arguments. (1:0)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #0 format[babel-flow] 1`] = `
|
||||
"Unexpected token (1:8)
|
||||
"\`import()\` requires exactly one or two arguments. (1:1)
|
||||
> 1 | import();
|
||||
| ^
|
||||
Cause: Unexpected token (1:7)"
|
||||
| ^
|
||||
Cause: \`import()\` requires exactly one or two arguments. (1:0)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #0 format[babel-ts] 1`] = `
|
||||
"Unexpected token (1:8)
|
||||
"\`import()\` requires exactly one or two arguments. (1:1)
|
||||
> 1 | import();
|
||||
| ^
|
||||
Cause: Unexpected token (1:7)"
|
||||
| ^
|
||||
Cause: \`import()\` requires exactly one or two arguments. (1:0)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #0 format[flow] 1`] = `
|
||||
@@ -42,24 +42,24 @@ Cause: Dynamic import requires exactly one or two arguments."
|
||||
`;
|
||||
|
||||
exports[`snippet: #1 format[babel] 1`] = `
|
||||
"Unexpected token (1:21)
|
||||
"\`import()\` requires exactly one or two arguments. (1:1)
|
||||
> 1 | import(/* comment */);
|
||||
| ^
|
||||
Cause: Unexpected token (1:20)"
|
||||
| ^
|
||||
Cause: \`import()\` requires exactly one or two arguments. (1:0)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #1 format[babel-flow] 1`] = `
|
||||
"Unexpected token (1:21)
|
||||
"\`import()\` requires exactly one or two arguments. (1:1)
|
||||
> 1 | import(/* comment */);
|
||||
| ^
|
||||
Cause: Unexpected token (1:20)"
|
||||
| ^
|
||||
Cause: \`import()\` requires exactly one or two arguments. (1:0)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #1 format[babel-ts] 1`] = `
|
||||
"Unexpected token (1:21)
|
||||
"\`import()\` requires exactly one or two arguments. (1:1)
|
||||
> 1 | import(/* comment */);
|
||||
| ^
|
||||
Cause: Unexpected token (1:20)"
|
||||
| ^
|
||||
Cause: \`import()\` requires exactly one or two arguments. (1:0)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #1 format[flow] 1`] = `
|
||||
@@ -83,24 +83,24 @@ Cause: Dynamic import requires exactly one or two arguments."
|
||||
`;
|
||||
|
||||
exports[`snippet: #2 format[babel] 1`] = `
|
||||
"Cannot use new with import(...). (1:5)
|
||||
"Cannot use new with import(). (1:5)
|
||||
> 1 | new import('./a.mjs');
|
||||
| ^
|
||||
Cause: Cannot use new with import(...). (1:4)"
|
||||
Cause: Cannot use new with import(). (1:4)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #2 format[babel-flow] 1`] = `
|
||||
"Cannot use new with import(...). (1:5)
|
||||
"Cannot use new with import(). (1:5)
|
||||
> 1 | new import('./a.mjs');
|
||||
| ^
|
||||
Cause: Cannot use new with import(...). (1:4)"
|
||||
Cause: Cannot use new with import(). (1:4)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #2 format[babel-ts] 1`] = `
|
||||
"Cannot use new with import(...). (1:5)
|
||||
"Cannot use new with import(). (1:5)
|
||||
> 1 | new import('./a.mjs');
|
||||
| ^
|
||||
Cause: Cannot use new with import(...). (1:4)"
|
||||
Cause: Cannot use new with import(). (1:4)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #2 format[flow] 1`] = `
|
||||
@@ -124,24 +124,24 @@ Cause: Expression expected."
|
||||
`;
|
||||
|
||||
exports[`snippet: #3 format[babel] 1`] = `
|
||||
"Unexpected token (1:12)
|
||||
"\`import()\` requires exactly one or two arguments. (1:5)
|
||||
> 1 | new import();
|
||||
| ^
|
||||
Cause: Unexpected token (1:11)"
|
||||
| ^
|
||||
Cause: \`import()\` requires exactly one or two arguments. (1:4)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #3 format[babel-flow] 1`] = `
|
||||
"Unexpected token (1:12)
|
||||
"\`import()\` requires exactly one or two arguments. (1:5)
|
||||
> 1 | new import();
|
||||
| ^
|
||||
Cause: Unexpected token (1:11)"
|
||||
| ^
|
||||
Cause: \`import()\` requires exactly one or two arguments. (1:4)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #3 format[babel-ts] 1`] = `
|
||||
"Unexpected token (1:12)
|
||||
"\`import()\` requires exactly one or two arguments. (1:5)
|
||||
> 1 | new import();
|
||||
| ^
|
||||
Cause: Unexpected token (1:11)"
|
||||
| ^
|
||||
Cause: \`import()\` requires exactly one or two arguments. (1:4)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #3 format[flow] 1`] = `
|
||||
|
||||
+3
-3
@@ -1,10 +1,10 @@
|
||||
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
||||
|
||||
exports[`snippet: #0 format[babel-ts] 1`] = `
|
||||
"An implementation cannot be declared in ambient contexts. (1:1)
|
||||
"An implementation cannot be declared in ambient contexts. (1:24)
|
||||
> 1 | declare function foo() {}
|
||||
| ^
|
||||
Cause: An implementation cannot be declared in ambient contexts. (1:0)"
|
||||
| ^
|
||||
Cause: An implementation cannot be declared in ambient contexts. (1:23)"
|
||||
`;
|
||||
|
||||
exports[`snippet: #0 format[oxc-ts] 1`] = `
|
||||
|
||||
+12
@@ -169,6 +169,18 @@ class D<T> {
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
exports[`constructorOverloadsWithDefaultValues.ts format[babel-ts] 1`] = `
|
||||
"A parameter initializer is only allowed in a function or constructor implementation. (3:17)
|
||||
1 | class C {
|
||||
2 | foo: string;
|
||||
> 3 | constructor(x = 1);
|
||||
| ^
|
||||
4 | constructor() {
|
||||
5 | }
|
||||
6 | }
|
||||
Cause: A parameter initializer is only allowed in a function or constructor implementation. (3:16)"
|
||||
`;
|
||||
|
||||
exports[`constructorOverloadsWithOptionalParameters.ts format 1`] = `
|
||||
====================================options=====================================
|
||||
parsers: ["typescript"]
|
||||
|
||||
+5
-1
@@ -1,6 +1,10 @@
|
||||
runFormatTest(import.meta, ["typescript"], {
|
||||
errors: {
|
||||
"babel-ts": ["readonlyInConstructorParameters.ts", "readonlyReadonly.ts"],
|
||||
"babel-ts": [
|
||||
"readonlyInConstructorParameters.ts",
|
||||
"readonlyReadonly.ts",
|
||||
"constructorOverloadsWithDefaultValues.ts",
|
||||
],
|
||||
"oxc-ts": ["readonlyInConstructorParameters.ts", "readonlyReadonly.ts"],
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user