Skip to content

Commit cc95c0b

Browse files
authored
Fix errors test output for webpack 2.2.1 (#457)
1 parent 6861e0e commit cc95c0b

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"mocha": "^3.1.0",
6060
"phantomjs-prebuilt": "^2.1.2",
6161
"rimraf": "^2.4.2",
62-
"typescript": "^2.1.4",
62+
"typescript": "^2.1.5",
6363
"typings": "^2.0.0",
6464
"webpack": "^2.2.0"
6565
}

test/comparison-tests/errors/expectedOutput-2.1/bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
/* 0 */
7171
/***/ (function(module, exports) {
7272

73-
throw new Error("Module parse failed: C:/source/ts-loader/index.js?{\"silent\":true,\"compilerOptions\":{\"newLine\":\"LF\"}}!/errors/app.ts Unexpected token (1:9)\nYou may need an appropriate loader to handle this file type.\n| var a = == 0;\n| ");
73+
throw new Error("Module parse failed: C:/source/ts-loader/index.js??ref--0!/errors/app.ts Unexpected token (1:9)\nYou may need an appropriate loader to handle this file type.\n| var a = == 0;\n| ");
7474

7575
/***/ })
7676
/******/ ]);

test/comparison-tests/errors/expectedOutput-2.1/bundle.transpiled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
/* 0 */
7171
/***/ (function(module, exports) {
7272

73-
throw new Error("Module parse failed: C:/source/ts-loader/index.js?{\"silent\":true,\"compilerOptions\":{\"newLine\":\"LF\"},\"transpileOnly\":true}!/errors.transpile/app.ts Unexpected token (2:9)\nYou may need an appropriate loader to handle this file type.\n| \"use strict\";\n| var a = == 0;\n| ");
73+
throw new Error("Module parse failed: C:/source/ts-loader/index.js??ref--0!/errors.transpile/app.ts Unexpected token (2:9)\nYou may need an appropriate loader to handle this file type.\n| \"use strict\";\n| var a = == 0;\n| ");
7474

7575
/***/ })
7676
/******/ ]);

test/comparison-tests/errors/expectedOutput-2.1/output.transpiled.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Asset Size Chunks Chunk Names
2-
bundle.js 2.84 kB 0 [emitted] main
3-
chunk {0} bundle.js (main) 335 bytes [entry] [rendered]
4-
[0] ./.test/errors/app.ts 335 bytes {0} [built] [failed] [2 errors]
2+
bundle.js 2.77 kB 0 [emitted] main
3+
chunk {0} bundle.js (main) 261 bytes [entry] [rendered]
4+
[0] ./.test/errors/app.ts 261 bytes {0} [built] [failed] [2 errors]
55

66
ERROR in ./.test/errors/app.ts
77
(1,7): error TS1005: '=' expected.
88

99
ERROR in ./.test/errors/app.ts
10-
Module parse failed: index.js?{"silent":true,"compilerOptions":{"newLine":"LF"},"transpileOnly":true}!app.ts Unexpected token (2:9)
10+
Module parse failed: index.js??ref--0!app.ts Unexpected token (2:9)
1111
You may need an appropriate loader to handle this file type.
1212
| "use strict";
1313
| var a = == 0;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Asset Size Chunks Chunk Names
2-
bundle.js 2.79 kB 0 [emitted] main
3-
chunk {0} bundle.js (main) 283 bytes [entry] [rendered]
4-
[0] ./.test/errors/app.ts 283 bytes {0} [built] [failed] [2 errors]
2+
bundle.js 2.74 kB 0 [emitted] main
3+
chunk {0} bundle.js (main) 232 bytes [entry] [rendered]
4+
[0] ./.test/errors/app.ts 232 bytes {0} [built] [failed] [2 errors]
55

66
ERROR in ./.test/errors/app.ts
77
(1,7): error TS1005: '=' expected.
88

99
ERROR in ./.test/errors/app.ts
10-
Module parse failed: index.js?{"silent":true,"compilerOptions":{"newLine":"LF"}}!app.ts Unexpected token (1:9)
10+
Module parse failed: index.js??ref--0!app.ts Unexpected token (1:9)
1111
You may need an appropriate loader to handle this file type.
1212
| var a = == 0;
1313
|

0 commit comments

Comments
 (0)