added tests
This commit is contained in:
parent
b033693947
commit
2c24f81561
16
tests/baselines/reference/keepImportsInDts1.js
Normal file
16
tests/baselines/reference/keepImportsInDts1.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
//// [tests/cases/compiler/keepImportsInDts1.ts] ////
|
||||
|
||||
//// [test.d.ts]
|
||||
|
||||
export {};
|
||||
//// [main.ts]
|
||||
import "test"
|
||||
|
||||
//// [main.js]
|
||||
define(["require", "exports", "test"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
|
||||
//// [main.d.ts]
|
||||
import "test";
|
6
tests/baselines/reference/keepImportsInDts1.symbols
Normal file
6
tests/baselines/reference/keepImportsInDts1.symbols
Normal file
|
@ -0,0 +1,6 @@
|
|||
=== c:/test.d.ts ===
|
||||
|
||||
No type information for this code.export {};
|
||||
No type information for this code.=== c:/app/main.ts ===
|
||||
import "test"
|
||||
No type information for this code.
|
6
tests/baselines/reference/keepImportsInDts1.types
Normal file
6
tests/baselines/reference/keepImportsInDts1.types
Normal file
|
@ -0,0 +1,6 @@
|
|||
=== c:/test.d.ts ===
|
||||
|
||||
No type information for this code.export {};
|
||||
No type information for this code.=== c:/app/main.ts ===
|
||||
import "test"
|
||||
No type information for this code.
|
22
tests/baselines/reference/keepImportsInDts2.js
Normal file
22
tests/baselines/reference/keepImportsInDts2.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
//// [tests/cases/compiler/keepImportsInDts2.ts] ////
|
||||
|
||||
//// [test.ts]
|
||||
|
||||
export {};
|
||||
//// [main.ts]
|
||||
import "./folder/test"
|
||||
|
||||
//// [test.js]
|
||||
define(["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
//// [main.js]
|
||||
define(["require", "exports", "./folder/test"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
|
||||
//// [test.d.ts]
|
||||
export { };
|
||||
//// [main.d.ts]
|
||||
import "./folder/test";
|
6
tests/baselines/reference/keepImportsInDts2.symbols
Normal file
6
tests/baselines/reference/keepImportsInDts2.symbols
Normal file
|
@ -0,0 +1,6 @@
|
|||
=== tests/cases/compiler/folder/test.ts ===
|
||||
|
||||
No type information for this code.export {};
|
||||
No type information for this code.=== tests/cases/compiler/main.ts ===
|
||||
import "./folder/test"
|
||||
No type information for this code.
|
6
tests/baselines/reference/keepImportsInDts2.types
Normal file
6
tests/baselines/reference/keepImportsInDts2.types
Normal file
|
@ -0,0 +1,6 @@
|
|||
=== tests/cases/compiler/folder/test.ts ===
|
||||
|
||||
No type information for this code.export {};
|
||||
No type information for this code.=== tests/cases/compiler/main.ts ===
|
||||
import "./folder/test"
|
||||
No type information for this code.
|
24
tests/baselines/reference/keepImportsInDts3.js
Normal file
24
tests/baselines/reference/keepImportsInDts3.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
//// [tests/cases/compiler/keepImportsInDts3.ts] ////
|
||||
|
||||
//// [test.ts]
|
||||
|
||||
export {};
|
||||
//// [main.ts]
|
||||
import "test"
|
||||
|
||||
//// [outputfile.js]
|
||||
define("test", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
define("app/main", ["require", "exports", "test"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
|
||||
//// [outputfile.d.ts]
|
||||
declare module "test" {
|
||||
export { };
|
||||
}
|
||||
declare module "app/main" {
|
||||
import "test";
|
||||
}
|
6
tests/baselines/reference/keepImportsInDts3.symbols
Normal file
6
tests/baselines/reference/keepImportsInDts3.symbols
Normal file
|
@ -0,0 +1,6 @@
|
|||
=== c:/test.ts ===
|
||||
|
||||
No type information for this code.export {};
|
||||
No type information for this code.=== c:/app/main.ts ===
|
||||
import "test"
|
||||
No type information for this code.
|
6
tests/baselines/reference/keepImportsInDts3.types
Normal file
6
tests/baselines/reference/keepImportsInDts3.types
Normal file
|
@ -0,0 +1,6 @@
|
|||
=== c:/test.ts ===
|
||||
|
||||
No type information for this code.export {};
|
||||
No type information for this code.=== c:/app/main.ts ===
|
||||
import "test"
|
||||
No type information for this code.
|
24
tests/baselines/reference/keepImportsInDts4.js
Normal file
24
tests/baselines/reference/keepImportsInDts4.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
//// [tests/cases/compiler/keepImportsInDts4.ts] ////
|
||||
|
||||
//// [test.ts]
|
||||
|
||||
export {};
|
||||
//// [main.ts]
|
||||
import "./folder/test"
|
||||
|
||||
//// [outputfile.js]
|
||||
define("folder/test", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
define("main", ["require", "exports", "folder/test"], function (require, exports) {
|
||||
"use strict";
|
||||
});
|
||||
|
||||
|
||||
//// [outputfile.d.ts]
|
||||
declare module "folder/test" {
|
||||
export { };
|
||||
}
|
||||
declare module "main" {
|
||||
import "folder/test";
|
||||
}
|
6
tests/baselines/reference/keepImportsInDts4.symbols
Normal file
6
tests/baselines/reference/keepImportsInDts4.symbols
Normal file
|
@ -0,0 +1,6 @@
|
|||
=== tests/cases/compiler/folder/test.ts ===
|
||||
|
||||
No type information for this code.export {};
|
||||
No type information for this code.=== tests/cases/compiler/main.ts ===
|
||||
import "./folder/test"
|
||||
No type information for this code.
|
6
tests/baselines/reference/keepImportsInDts4.types
Normal file
6
tests/baselines/reference/keepImportsInDts4.types
Normal file
|
@ -0,0 +1,6 @@
|
|||
=== tests/cases/compiler/folder/test.ts ===
|
||||
|
||||
No type information for this code.export {};
|
||||
No type information for this code.=== tests/cases/compiler/main.ts ===
|
||||
import "./folder/test"
|
||||
No type information for this code.
|
|
@ -1,13 +0,0 @@
|
|||
//// [tests/cases/compiler/noErrorOnEmptyDts.ts] ////
|
||||
|
||||
//// [test.d.ts]
|
||||
|
||||
|
||||
// comment
|
||||
|
||||
//// [main.ts]
|
||||
import "test"
|
||||
|
||||
//// [main.js]
|
||||
"use strict";
|
||||
require("test");
|
|
@ -1,8 +0,0 @@
|
|||
=== c:/node_modules/test.d.ts ===
|
||||
|
||||
No type information for this code.
|
||||
No type information for this code.// comment
|
||||
No type information for this code.
|
||||
No type information for this code.=== c:/app/main.ts ===
|
||||
import "test"
|
||||
No type information for this code.
|
|
@ -1,8 +0,0 @@
|
|||
=== c:/node_modules/test.d.ts ===
|
||||
|
||||
No type information for this code.
|
||||
No type information for this code.// comment
|
||||
No type information for this code.
|
||||
No type information for this code.=== c:/app/main.ts ===
|
||||
import "test"
|
||||
No type information for this code.
|
7
tests/cases/compiler/keepImportsInDts1.ts
Normal file
7
tests/cases/compiler/keepImportsInDts1.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
// @module: amd
|
||||
// @declaration: true
|
||||
|
||||
// @filename: c:/test.d.ts
|
||||
export {};
|
||||
// @filename: c:/app/main.ts
|
||||
import "test"
|
7
tests/cases/compiler/keepImportsInDts2.ts
Normal file
7
tests/cases/compiler/keepImportsInDts2.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
// @module: amd
|
||||
// @declaration: true
|
||||
|
||||
// @filename: folder/test.ts
|
||||
export {};
|
||||
// @filename: main.ts
|
||||
import "./folder/test"
|
8
tests/cases/compiler/keepImportsInDts3.ts
Normal file
8
tests/cases/compiler/keepImportsInDts3.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
// @module: amd
|
||||
// @declaration: true
|
||||
// @out: outputfile.js
|
||||
|
||||
// @filename: c:/test.ts
|
||||
export {};
|
||||
// @filename: c:/app/main.ts
|
||||
import "test"
|
8
tests/cases/compiler/keepImportsInDts4.ts
Normal file
8
tests/cases/compiler/keepImportsInDts4.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
// @module: amd
|
||||
// @declaration: true
|
||||
// @out: outputfile.js
|
||||
|
||||
// @filename: folder/test.ts
|
||||
export {};
|
||||
// @filename: main.ts
|
||||
import "./folder/test"
|
|
@ -1,8 +0,0 @@
|
|||
// @module: commonjs
|
||||
|
||||
// @filename: c:/node_modules/test.d.ts
|
||||
|
||||
// comment
|
||||
|
||||
// @filename: c:/app/main.ts
|
||||
import "test"
|
Loading…
Reference in a new issue