mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Add --target esnext tests and update baselines
This commit is contained in:
@@ -165,7 +165,7 @@ namespace ts {
|
||||
start: undefined,
|
||||
length: undefined,
|
||||
}, {
|
||||
messageText: "Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017'",
|
||||
messageText: "Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'esnext'",
|
||||
category: ts.Diagnostics.Argument_for_0_option_must_be_Colon_1.category,
|
||||
code: ts.Diagnostics.Argument_for_0_option_must_be_Colon_1.code,
|
||||
|
||||
|
||||
@@ -176,7 +176,7 @@ namespace ts {
|
||||
file: undefined,
|
||||
start: 0,
|
||||
length: 0,
|
||||
messageText: "Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017'",
|
||||
messageText: "Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'esnext'",
|
||||
code: Diagnostics.Argument_for_0_option_must_be_Colon_1.code,
|
||||
category: Diagnostics.Argument_for_0_option_must_be_Colon_1.category
|
||||
}]
|
||||
|
||||
8
tests/baselines/reference/objectSpreadNoTransform.js
Normal file
8
tests/baselines/reference/objectSpreadNoTransform.js
Normal file
@@ -0,0 +1,8 @@
|
||||
//// [objectSpreadNoTransform.ts]
|
||||
const y = { a: 'yes', b: 'no' };
|
||||
const o = { x: 1, ...y };
|
||||
|
||||
|
||||
//// [objectSpreadNoTransform.js]
|
||||
const y = { a: 'yes', b: 'no' };
|
||||
const o = { x: 1, ...y };
|
||||
10
tests/baselines/reference/objectSpreadNoTransform.symbols
Normal file
10
tests/baselines/reference/objectSpreadNoTransform.symbols
Normal file
@@ -0,0 +1,10 @@
|
||||
=== tests/cases/conformance/types/spread/objectSpreadNoTransform.ts ===
|
||||
const y = { a: 'yes', b: 'no' };
|
||||
>y : Symbol(y, Decl(objectSpreadNoTransform.ts, 0, 5))
|
||||
>a : Symbol(a, Decl(objectSpreadNoTransform.ts, 0, 11))
|
||||
>b : Symbol(b, Decl(objectSpreadNoTransform.ts, 0, 21))
|
||||
|
||||
const o = { x: 1, ...y };
|
||||
>o : Symbol(o, Decl(objectSpreadNoTransform.ts, 1, 5))
|
||||
>x : Symbol(x, Decl(objectSpreadNoTransform.ts, 1, 11))
|
||||
|
||||
16
tests/baselines/reference/objectSpreadNoTransform.types
Normal file
16
tests/baselines/reference/objectSpreadNoTransform.types
Normal file
@@ -0,0 +1,16 @@
|
||||
=== tests/cases/conformance/types/spread/objectSpreadNoTransform.ts ===
|
||||
const y = { a: 'yes', b: 'no' };
|
||||
>y : { a: string; b: string; }
|
||||
>{ a: 'yes', b: 'no' } : { a: string; b: string; }
|
||||
>a : string
|
||||
>'yes' : "yes"
|
||||
>b : string
|
||||
>'no' : "no"
|
||||
|
||||
const o = { x: 1, ...y };
|
||||
>o : { a: string; b: string; x: number; }
|
||||
>{ x: 1, ...y } : { a: string; b: string; x: number; }
|
||||
>x : number
|
||||
>1 : 1
|
||||
>y : any
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
// @target: esnext
|
||||
const y = { a: 'yes', b: 'no' };
|
||||
const o = { x: 1, ...y };
|
||||
Reference in New Issue
Block a user