Skip to content

Commit 7879b22

Browse files
author
David Sheldrick
committed
Add test case for preserveWithJsExtension
1 parent dd0ed44 commit 7879b22

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
EmitSkipped: false
2+
FileName : /tests/cases/fourslash/inputFile1.js.map
3+
{"version":3,"file":"inputFile1.js","sourceRoot":"","sources":["inputFile1.ts"],"names":[],"mappings":"AAAA,kBAAkB;AACjB,IAAI,CAAC,GAAW,CAAC,CAAC;AAClB;IAAA;IAGA,CAAC;IAAD,UAAC;AAAD,CAAC,AAHD,IAGC"}FileName : /tests/cases/fourslash/inputFile1.js
4+
// regular ts file
5+
var t = 5;
6+
var Bar = (function () {
7+
function Bar() {
8+
}
9+
return Bar;
10+
}());
11+
//# sourceMappingURL=inputFile1.js.mapFileName : /tests/cases/fourslash/inputFile1.d.ts
12+
declare var t: number;
13+
declare class Bar {
14+
x: string;
15+
y: number;
16+
}
17+
18+
EmitSkipped: false
19+
FileName : /tests/cases/fourslash/inputFile2.js.map
20+
{"version":3,"file":"inputFile2.js","sourceRoot":"","sources":["inputFile2.tsx"],"names":[],"mappings":"AAAA,IAAI,CAAC,GAAG,QAAQ,CAAC;AACjB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC,CAAC,CAAC,EAAG,CAAA"}FileName : /tests/cases/fourslash/inputFile2.js
21+
var y = "my div";
22+
var x = <div name={y}/>;
23+
//# sourceMappingURL=inputFile2.js.mapFileName : /tests/cases/fourslash/inputFile2.d.ts
24+
declare var y: string;
25+
declare var x: any;
26+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/// <reference path="fourslash.ts" />
2+
3+
// @BaselineFile: getEmitOutputTsxFile_PreserveWithJsExtension.baseline
4+
// @declaration: true
5+
// @sourceMap: true
6+
// @jsx: preserveWithJsExtension
7+
8+
// @Filename: inputFile1.ts
9+
// @emitThisFile: true
10+
////// regular ts file
11+
//// var t: number = 5;
12+
//// class Bar {
13+
//// x : string;
14+
//// y : number
15+
//// }
16+
17+
// @Filename: inputFile2.tsx
18+
// @emitThisFile: true
19+
//// var y = "my div";
20+
//// var x = <div name= {y} />
21+
22+
verify.baselineGetEmitOutput();

0 commit comments

Comments
 (0)