Skip to content

Commit

Permalink
regen comparison tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonKleban committed Apr 22, 2021
1 parent 5435096 commit f04c5cf
Show file tree
Hide file tree
Showing 140 changed files with 460 additions and 450 deletions.
Expand Up @@ -5,6 +5,6 @@ Entrypoint main = bundle.js
[./common/components/myComponent.ts] 46 bytes {main} [built]

ERROR in app.ts
./app.ts 2:30-55
./app.ts
[tsl] ERROR in app.ts(2,31)
 TS2307: Cannot find module 'components/myComponent2' or its corresponding type declarations.
Expand Up @@ -5,6 +5,6 @@ Entrypoint main = bundle.js
[./common/components/myComponent.ts] 45 bytes {main} [built]

ERROR in app.ts
./app.ts 2:30-55
./app.ts
[tsl] ERROR in app.ts(2,31)
 TS2307: Cannot find module 'components/myComponent2' or its corresponding type declarations.
Expand Up @@ -5,7 +5,7 @@ Entrypoint main = bundle.js
[./src/error2.js] 303 bytes {main} [built] [1 error]
[./src/index.js] 207 bytes {main} [built]

ERROR in src/error2.js
./src/error2.js 4:9-12
[tsl] ERROR in src/error2.js(4,10)
ERROR in src\error2.js
./src/error2.js
[tsl] ERROR in src\error2.js(4,10)
 TS2339: Property 'bar' does not exist on type 'Class2'.
29 changes: 2 additions & 27 deletions test/comparison-tests/appendSuffixTo/expectedOutput-4.1/bundle.js
Expand Up @@ -86,39 +86,14 @@
/************************************************************************/
/******/ ({

/***/ "./component.vue":
/*!***********************!*\
!*** ./component.vue ***!
\***********************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nexports.__esModule = true;\nexports[\"default\"] = {\n data: function () {\n return {\n msg: \"component\"\n };\n }\n};\n\n\n//# sourceURL=webpack:///./component.vue?");

/***/ }),

/***/ "./helper.ts":
/*!*******************!*\
!*** ./helper.ts ***!
\*******************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nexports.__esModule = true;\nexports.myMethod = void 0;\nfunction myMethod() {\n console.log('from helper!');\n}\nexports.myMethod = myMethod;\n\n\n//# sourceURL=webpack:///./helper.ts?");

/***/ }),

/***/ "./index.vue":
/*!*******************!*\
!*** ./index.vue ***!
\*******************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
/***/ (function(module, exports) {

"use strict";
eval("\nexports.__esModule = true;\nvar component_vue_1 = __webpack_require__(/*! ./component.vue */ \"./component.vue\");\nvar helper_1 = __webpack_require__(/*! ./helper */ \"./helper.ts\");\nexports[\"default\"] = {\n components: { component: component_vue_1[\"default\"] },\n data: function () {\n return {\n msg: \"world\"\n };\n },\n method: {\n myMethod: helper_1.myMethod\n }\n};\n\n\n//# sourceURL=webpack:///./index.vue?");
eval("throw new Error(\"Module build failed (from C:/code/ts-loader/index.js):/nError: ENOENT: no such file or directory, lstat 'C://code//ts-loader//.test//appendSuffixTo//index.vue.ts'/n at Object.realpathSync (fs.js:1681:7)/n at resolveModule (C://code//ts-loader//dist//servicesHost.js:678:58)/n at C://code//ts-loader//dist//servicesHost.js:132:13/n at Array.map (<anonymous>)/n at Object.resolveModuleNames (C://code//ts-loader//dist//servicesHost.js:130:65)/n at actualResolveModuleNamesWorker (C://code//ts-loader//node_modules//typescript//lib//typescript.js:105296:133)/n at resolveModuleNamesWorker (C://code//ts-loader//node_modules//typescript//lib//typescript.js:105534:26)/n at resolveModuleNamesReusingOldState (C://code//ts-loader//node_modules//typescript//lib//typescript.js:105648:24)/n at processImportedModules (C://code//ts-loader//node_modules//typescript//lib//typescript.js:107135:35)/n at findSourceFileWorker (C://code//ts-loader//node_modules//typescript//lib//typescript.js:106907:17)/n at findSourceFile (C://code//ts-loader//node_modules//typescript//lib//typescript.js:106769:26)/n at C://code//ts-loader//node_modules//typescript//lib//typescript.js:106726:85/n at getSourceFileFromReferenceWorker (C://code//ts-loader//node_modules//typescript//lib//typescript.js:106693:34)/n at processSourceFile (C://code//ts-loader//node_modules//typescript//lib//typescript.js:106726:13)/n at processRootFile (C://code//ts-loader//node_modules//typescript//lib//typescript.js:106536:13)/n at C://code//ts-loader//node_modules//typescript//lib//typescript.js:105401:60/n at Object.forEach (C://code//ts-loader//node_modules//typescript//lib//typescript.js:382:30)/n at Object.createProgram (C://code//ts-loader//node_modules//typescript//lib//typescript.js:105401:16)/n at synchronizeHostData (C://code//ts-loader//node_modules//typescript//lib//typescript.js:147139:26)/n at Object.getProgram (C://code//ts-loader//node_modules//typescript//lib//typescript.js:147231:13)/n at Object.ensureProgram (C://code//ts-loader//dist//utils.js:193:41)/n at Object.getEmitOutput (C://code//ts-loader//dist//instances.js:491:29)/n at getEmit (C://code//ts-loader//dist//index.js:261:37)/n at successLoader (C://code//ts-loader//dist//index.js:39:11)/n at Object.loader (C://code//ts-loader//dist//index.js:23:5)\");\n\n//# sourceURL=webpack:///./index.vue?");

/***/ })

Expand Down
35 changes: 31 additions & 4 deletions test/comparison-tests/appendSuffixTo/expectedOutput-4.1/output.txt
@@ -1,6 +1,33 @@
Asset Size Chunks Chunk Names
bundle.js 5.03 KiB main [emitted] main
bundle.js 6.36 KiB main [emitted] main
Entrypoint main = bundle.js
[./component.vue] 154 bytes {main} [built]
[./helper.ts] 154 bytes {main} [built]
[./index.vue] 352 bytes {main} [built]
[./index.vue] 2.34 KiB {main} [built] [failed] [1 error]

ERROR in ./index.vue
Module build failed (from /index.js):
Error: ENOENT: no such file or directory, lstat 'index.vue.ts'
at Object.realpathSync (fs.js:1681:7)
at resolveModule (dist\servicesHost.js:678:58)
at dist\servicesHost.js:132:13
at Array.map (<anonymous>)
at Object.resolveModuleNames (dist\servicesHost.js:130:65)
at actualResolveModuleNamesWorker (node_modules\typescript\lib\typescript.js:105296:133)
at resolveModuleNamesWorker (node_modules\typescript\lib\typescript.js:105534:26)
at resolveModuleNamesReusingOldState (node_modules\typescript\lib\typescript.js:105648:24)
at processImportedModules (node_modules\typescript\lib\typescript.js:107135:35)
at findSourceFileWorker (node_modules\typescript\lib\typescript.js:106907:17)
at findSourceFile (node_modules\typescript\lib\typescript.js:106769:26)
at node_modules\typescript\lib\typescript.js:106726:85
at getSourceFileFromReferenceWorker (node_modules\typescript\lib\typescript.js:106693:34)
at processSourceFile (node_modules\typescript\lib\typescript.js:106726:13)
at processRootFile (node_modules\typescript\lib\typescript.js:106536:13)
at node_modules\typescript\lib\typescript.js:105401:60
at Object.forEach (node_modules\typescript\lib\typescript.js:382:30)
at Object.createProgram (node_modules\typescript\lib\typescript.js:105401:16)
at synchronizeHostData (node_modules\typescript\lib\typescript.js:147139:26)
at Object.getProgram (node_modules\typescript\lib\typescript.js:147231:13)
at Object.ensureProgram (dist\utils.js:193:41)
at Object.getEmitOutput (dist\instances.js:491:29)
at getEmit (dist\index.js:261:37)
at successLoader (dist\index.js:39:11)
at Object.loader (dist\index.js:23:5)
Expand Up @@ -6,6 +6,6 @@ Entrypoint main = bundle.js
[./submodule/submodule.ts] 149 bytes {main}

ERROR in app.ts
./app.ts 3:12-24
./app.ts
[tsl] ERROR in app.ts(3,13)
 TS2551: Property 'doSomething2' does not exist on type 'typeof externalLib'. Did you mean 'doSomething'?
2 changes: 1 addition & 1 deletion test/comparison-tests/colors/expectedOutput-4.1/output.txt
Expand Up @@ -13,6 +13,6 @@ You may need an additional loader to handle the result of these loaders.
|

ERROR in app.ts
./app.ts 1:6-8
./app.ts
[tsl] ERROR in app.ts(1,7)
TS1005: ',' expected.
Expand Up @@ -13,6 +13,6 @@ You may need an additional loader to handle the result of these loaders.
|

ERROR in app.ts
./app.ts 1:6-8
./app.ts
[tsl] ERROR in app.ts(1,7)
TS1005: ',' expected.
Expand Up @@ -4,6 +4,6 @@ Entrypoint main = bundle.js
[./app.ts] 41 bytes {main} [built] [1 error]

ERROR in app.ts
./app.ts 2:6-11
./app.ts
[tsl] ERROR in app.ts(2,7)
 TS2339: Property 'sayHi' does not exist on type 'typeof Hello'.
Expand Up @@ -5,11 +5,11 @@ Entrypoint main = bundle.js
[./dep.ts] 59 bytes {main} [built] [1 error]

ERROR in app.ts
./app.ts 5:6-17
./app.ts
[tsl] ERROR in app.ts(5,7)
 TS2339: Property 'doSomething' does not exist on type 'typeof Thing'.

ERROR in dep.ts
./dep.ts 1:6-17
./dep.ts
[tsl] ERROR in dep.ts(1,7)
 TS2339: Property 'doSomething' does not exist on type 'typeof Thing'.
Expand Up @@ -6,11 +6,11 @@ Entrypoint main = bundle.js
[./dep2.ts] 76 bytes {main} [built]

ERROR in app.ts
./app.ts 4:5-7
./app.ts
[tsl] ERROR in app.ts(4,6)
 TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.

ERROR in app.ts
./app.ts 5:5-7
./app.ts
[tsl] ERROR in app.ts(5,6)
 TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
Expand Up @@ -6,6 +6,6 @@ Entrypoint main = bundle.js
[./dep2.ts] 76 bytes {main}

ERROR in app.ts
./app.ts 5:5-7
./app.ts
[tsl] ERROR in app.ts(5,6)
 TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
Expand Up @@ -5,5 +5,5 @@ Entrypoint main = bundle.js
[./common/components/myComponent.ts] 46 bytes {main} [built]

ERROR in app.ts
./app.ts 2:30-55
Does not compute.... code: 2307,severity: error,content: Cannot find module 'components/myComponent2' or its corresponding type declarations.,file: app.ts,line: 2,character: 31,context: .test/errorFormatter
./app.ts
Does not compute.... code: 2307,severity: error,content: Cannot find module 'components/myComponent2' or its corresponding type declarations.,file: app.ts,line: 2,character: 31,context: .test\errorFormatter
2 changes: 1 addition & 1 deletion test/comparison-tests/errors/expectedOutput-4.1/output.txt
Expand Up @@ -13,6 +13,6 @@ You may need an additional loader to handle the result of these loaders.
|

ERROR in app.ts
./app.ts 1:6-8
./app.ts
[tsl] ERROR in app.ts(1,7)
 TS1005: ',' expected.
Expand Up @@ -4,7 +4,7 @@ Entrypoint main = bundle.js
[./app.ts] 220 bytes {main} [built] [failed] [2 errors]

ERROR in app.ts
./app.ts 1:6-8
./app.ts
[tsl] ERROR in app.ts(1,7)
 TS1005: ',' expected.

Expand Down
2 changes: 1 addition & 1 deletion test/comparison-tests/es3/expectedOutput-4.1/output.txt
Expand Up @@ -4,6 +4,6 @@ Entrypoint main = bundle.js
[./app.ts] 29 bytes {main} [built] [1 error]

ERROR in app.ts
./app.ts 1:6-7
./app.ts
[tsl] ERROR in app.ts(1,7)
 TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
Expand Up @@ -4,6 +4,6 @@ Entrypoint main = bundle.js
[./app.ts] 278 bytes {main} [built] [1 error]

ERROR in app.ts
./app.ts 9:4-5
./app.ts
[tsl] ERROR in app.ts(9,5)
 TS2322: Type 'string' is not assignable to type 'Number'.
Expand Up @@ -4,6 +4,6 @@ Entrypoint main = bundle.js
[./app.ts] 70 bytes {main} [built] [1 error]

ERROR in app.ts
./app.ts 4:0-7
./app.ts
[tsl] ERROR in app.ts(4,1)
 TS2322: Type 'string' is not assignable to type 'boolean'.
Expand Up @@ -93,7 +93,7 @@
/*! no static exports found */
/***/ (function(module, exports) {

eval("throw new Error(\"Module build failed (from /workspaces/ts-loader/index.js):/nError: /u001b[31mA file specified in tsconfig.json could not be found: /instance/i-dont-exist/u001b[39m/n at Object.loader (/workspaces/ts-loader/dist/index.js:18:18)\");\n\n//# sourceURL=webpack:///./a.ts?");
eval("throw new Error(\"Module build failed (from C:/code/ts-loader/index.js):/nError: /u001b[31mA file specified in tsconfig.json could not be found: C://code//ts-loader//.test//instance//i-dont-exist/u001b[39m/n at Object.loader (C://code//ts-loader//dist//index.js:18:18)\");\n\n//# sourceURL=webpack:///./a.ts?");

/***/ })

Expand Down
16 changes: 8 additions & 8 deletions test/comparison-tests/instance/expectedOutput-4.1/output.txt
@@ -1,19 +1,19 @@
Asset Size Chunks Chunk Names
bundle.js 4 KiB a [emitted] a
Asset Size Chunks Chunk Names
bundle.js 4.01 KiB a [emitted] a
Entrypoint a = bundle.js
Entrypoint b =
[./a.ts] 276 bytes {a} [built] [failed] [1 error]
[./b.ts] 276 bytes {b} [built] [failed] [1 error]
[./a.ts] 273 bytes {a} [built] [failed] [1 error]
[./b.ts] 273 bytes {b} [built] [failed] [1 error]

ERROR in ./a.ts
Module build failed (from index.js):
Module build failed (from /index.js):
Error: A file specified in tsconfig.json could not be found: i-dont-exist
at Object.loader (dist/index.js:18:18)
at Object.loader (dist\index.js:18:18)

ERROR in ./b.ts
Module build failed (from index.js):
Module build failed (from /index.js):
Error: A file specified in tsconfig.json could not be found: i-dont-exist
at Object.loader (dist/index.js:18:18)
at Object.loader (dist\index.js:18:18)

ERROR in chunk b [entry]
bundle.js
Expand Down
Expand Up @@ -93,7 +93,7 @@
/*! no static exports found */
/***/ (function(module, exports) {

eval("throw new Error(\"Module build failed (from /workspaces/ts-loader/index.js):/nError: /u001b[31mA file specified in tsconfig.json could not be found: /instance.transpile/i-dont-exist/u001b[39m/n at Object.loader (/workspaces/ts-loader/dist/index.js:18:18)\");\n\n//# sourceURL=webpack:///./a.ts?");
eval("throw new Error(\"Module build failed (from C:/code/ts-loader/index.js):/nError: /u001b[31mA file specified in tsconfig.json could not be found: C://code//ts-loader//.test//instance.transpile//i-dont-exist/u001b[39m/n at Object.loader (C://code//ts-loader//dist//index.js:18:18)\");\n\n//# sourceURL=webpack:///./a.ts?");

/***/ })

Expand Down
@@ -1,19 +1,19 @@
Asset Size Chunks Chunk Names
bundle.js 4.01 KiB a [emitted] a
bundle.js 4.02 KiB a [emitted] a
Entrypoint a = bundle.js
Entrypoint b =
[./a.ts] 286 bytes {a} [built] [failed] [1 error]
[./b.ts] 286 bytes {b} [built] [failed] [1 error]
[./a.ts] 283 bytes {a} [built] [failed] [1 error]
[./b.ts] 283 bytes {b} [built] [failed] [1 error]

ERROR in ./a.ts
Module build failed (from index.js):
Module build failed (from /index.js):
Error: A file specified in tsconfig.json could not be found: i-dont-exist
at Object.loader (dist/index.js:18:18)
at Object.loader (dist\index.js:18:18)

ERROR in ./b.ts
Module build failed (from index.js):
Module build failed (from /index.js):
Error: A file specified in tsconfig.json could not be found: i-dont-exist
at Object.loader (dist/index.js:18:18)
at Object.loader (dist\index.js:18:18)

ERROR in chunk b [entry]
bundle.js
Expand Down
Expand Up @@ -94,7 +94,7 @@
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nexports.__esModule = true;\nvar foo;\nfoo.bar = 'foobar';\n\n\n//# sourceURL=webpack:///./app.ts?");
eval("\r\nexports.__esModule = true;\r\nvar foo;\r\nfoo.bar = 'foobar';\r\n\n\n//# sourceURL=webpack:///./app.ts?");

/***/ })

Expand Down
4 changes: 2 additions & 2 deletions test/comparison-tests/issue441/expectedOutput-4.1/output.txt
@@ -1,4 +1,4 @@
Asset Size Chunks Chunk Names
bundle.js 3.83 KiB main [emitted] main
bundle.js 3.84 KiB main [emitted] main
Entrypoint main = bundle.js
[./app.ts] 70 bytes {main} [built]
[./app.ts] 74 bytes {main} [built]
Expand Up @@ -94,7 +94,7 @@
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nexports.__esModule = true;\nvar foo;\nfoo.bar = 'foobar';\n\n\n//# sourceURL=webpack:///./app.ts?");
eval("\r\nexports.__esModule = true;\r\nvar foo;\r\nfoo.bar = 'foobar';\r\n\n\n//# sourceURL=webpack:///./app.ts?");

/***/ })

Expand Down
@@ -1,4 +1,4 @@
Asset Size Chunks Chunk Names
bundle.js 3.83 KiB main [emitted] main
bundle.js 3.84 KiB main [emitted] main
Entrypoint main = bundle.js
[./app.ts] 70 bytes {main} [built]
[./app.ts] 74 bytes {main} [built]
Expand Up @@ -94,7 +94,7 @@
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nexports.__esModule = true;\nvar foo;\nfoo.bar = 'foobar';\n\n\n//# sourceURL=webpack:///./app.ts?");
eval("\r\nexports.__esModule = true;\r\nvar foo;\r\nfoo.bar = 'foobar';\r\n\n\n//# sourceURL=webpack:///./app.ts?");

/***/ })

Expand Down
@@ -1,4 +1,4 @@
Asset Size Chunks Chunk Names
bundle.js 3.83 KiB main [emitted] main
bundle.js 3.84 KiB main [emitted] main
Entrypoint main = bundle.js
[./app.ts] 70 bytes {main} [built]
[./app.ts] 74 bytes {main} [built]
Expand Up @@ -94,7 +94,7 @@
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nexports.__esModule = true;\nvar foo;\nfoo.bar = 'foobar';\n\n\n//# sourceURL=webpack:///./app.ts?");
eval("\r\nexports.__esModule = true;\r\nvar foo;\r\nfoo.bar = 'foobar';\r\n\n\n//# sourceURL=webpack:///./app.ts?");

/***/ })

Expand Down
@@ -1,4 +1,4 @@
Asset Size Chunks Chunk Names
bundle.js 3.83 KiB main [emitted] main
bundle.js 3.84 KiB main [emitted] main
Entrypoint main = bundle.js
[./app.ts] 70 bytes {main} [built]
[./app.ts] 74 bytes {main} [built]
Expand Up @@ -94,7 +94,7 @@
/***/ (function(module, exports, __webpack_require__) {

"use strict";
eval("\nexports.__esModule = true;\nvar foo;\nfoo.bar = 'foobar';\n\n\n//# sourceURL=webpack:///./app.ts?");
eval("\r\nexports.__esModule = true;\r\nvar foo;\r\nfoo.bar = 'foobar';\r\n\n\n//# sourceURL=webpack:///./app.ts?");

/***/ })

Expand Down

0 comments on commit f04c5cf

Please sign in to comment.