mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-05 16:54:54 -05:00
test(shebang) desired outcome
This commit is contained in:
8
tests/baselines/reference/shebang.js
Normal file
8
tests/baselines/reference/shebang.js
Normal file
@@ -0,0 +1,8 @@
|
||||
//// [shebang.ts]
|
||||
#!/usr/bin/env node
|
||||
var foo = 'I wish the generated JS to be executed in node';
|
||||
|
||||
|
||||
//// [shebang.js]
|
||||
#!/usr/bin/env node
|
||||
var foo = 'I wish the generated JS to be executed in node';
|
||||
5
tests/baselines/reference/shebang.symbols
Normal file
5
tests/baselines/reference/shebang.symbols
Normal file
@@ -0,0 +1,5 @@
|
||||
=== tests/cases/compiler/shebang.ts ===
|
||||
#!/usr/bin/env node
|
||||
var foo = 'I wish the generated JS to be executed in node';
|
||||
>foo : Symbol(foo, Decl(shebang.ts, 1, 3))
|
||||
|
||||
6
tests/baselines/reference/shebang.types
Normal file
6
tests/baselines/reference/shebang.types
Normal file
@@ -0,0 +1,6 @@
|
||||
=== tests/cases/compiler/shebang.ts ===
|
||||
#!/usr/bin/env node
|
||||
var foo = 'I wish the generated JS to be executed in node';
|
||||
>foo : string
|
||||
>'I wish the generated JS to be executed in node' : string
|
||||
|
||||
2
tests/cases/compiler/shebang.ts
Normal file
2
tests/cases/compiler/shebang.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
var foo = 'I wish the generated JS to be executed in node';
|
||||
Reference in New Issue
Block a user