Skip to content

Commit d1789dd

Browse files
committed
Fix tests
1 parent 3c26aea commit d1789dd

File tree

17 files changed

+49
-41
lines changed

17 files changed

+49
-41
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ install:
1111
- yarn build
1212
- yarn add $TYPESCRIPT
1313
env:
14-
14+
1515
- TYPESCRIPT=typescript@next
1616
1717

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ environment:
33
FORCE_COLOR: 1
44
nodejs_version: "8"
55
matrix:
6-
- TYPESCRIPT: [email protected].1
6+
- TYPESCRIPT: [email protected].2
77
- TYPESCRIPT: typescript@next
88
- TYPESCRIPT: [email protected]
99
- TYPESCRIPT: [email protected]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"mocha": "^5.0.0",
7979
"prettier": "^1.11.1",
8080
"rimraf": "^2.6.2",
81-
"typescript": "^2.7.2",
81+
"typescript": "^2.9.2",
8282
"webpack": "^4.5.0",
8383
"webpack-cli": "^2.1.2"
8484
}

src/servicesHost.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export function makeWatchHost(
239239
);
240240
}
241241
},
242-
createProgram: compiler.createAbstractBuilder as any // TODO: Chase up with TypeScript team about API change
242+
createProgram: compiler.createAbstractBuilder
243243
};
244244
return watchHost;
245245

test/comparison-tests/instance/expectedOutput-2.9/bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
/*! no static exports found */
9494
/***/ (function(module, exports) {
9595

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

9898
/***/ })
9999

test/comparison-tests/instance/expectedOutput-2.9/bundle.transpiled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
/*! no static exports found */
9494
/***/ (function(module, exports) {
9595

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

9898
/***/ })
9999

test/comparison-tests/instance/expectedOutput-2.9/output.transpiled.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
Asset Size Chunks Chunk Names
2-
bundle.js 3.91 KiB a [emitted] a
2+
bundle.js 3.99 KiB a [emitted] a
33
Entrypoint a = bundle.js
44
Entrypoint b =
5-
[./a.ts] 177 bytes {a} [built] [failed] [1 error]
6-
[./b.ts] 177 bytes {b} [built] [failed] [1 error]
5+
[./a.ts] 252 bytes {a} [built] [failed] [1 error]
6+
[./b.ts] 252 bytes {b} [built] [failed] [1 error]
77

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

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

1416
ERROR in chunk b [entry]
1517
bundle.js

test/comparison-tests/instance/expectedOutput-2.9/output.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
Asset Size Chunks Chunk Names
2-
bundle.js 3.9 KiB a [emitted] a
1+
Asset Size Chunks Chunk Names
2+
bundle.js 3.98 KiB a [emitted] a
33
Entrypoint a = bundle.js
44
Entrypoint b =
5-
[./a.ts] 167 bytes {a} [built] [failed] [1 error]
6-
[./b.ts] 167 bytes {b} [built] [failed] [1 error]
7-
8-
ERROR in ./a.ts
9-
Module build failed: A file specified in tsconfig.json could not be found: i-dont-exist
5+
[./a.ts] 242 bytes {a} [built] [failed] [1 error]
6+
[./b.ts] 242 bytes {b} [built] [failed] [1 error]
107

118
ERROR in ./b.ts
12-
Module build failed: A file specified in tsconfig.json could not be found: i-dont-exist
9+
Module build failed: Error: A file specified in tsconfig.json could not be found: i-dont-exist
10+
at Object.loader (dist\index.js:18:18)
11+
12+
ERROR in ./a.ts
13+
Module build failed: Error: A file specified in tsconfig.json could not be found: i-dont-exist
14+
at Object.loader (dist\index.js:18:18)
1315

1416
ERROR in chunk b [entry]
1517
bundle.js

test/comparison-tests/tsconfigInvalid/expectedOutput-2.9/bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
/*! no static exports found */
9494
/***/ (function(module, exports) {
9595

96-
eval("throw new Error(\"Module build failed: /u001b[31merror while parsing tsconfig.json/u001b[39m\");\n\n//# sourceURL=webpack:///./app.ts?");
96+
eval("throw new Error(\"Module build failed: Error: /u001b[31merror while parsing tsconfig.json/u001b[39m/n at Object.loader (C://source//ts-loader//dist//index.js:18:18)\");\n\n//# sourceURL=webpack:///./app.ts?");
9797

9898
/***/ })
9999

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Asset Size Chunks Chunk Names
2-
bundle.js 3.83 KiB main [emitted] main
2+
bundle.js 3.91 KiB main [emitted] main
33
Entrypoint main = bundle.js
4-
[./app.ts] 94 bytes {main} [built] [failed] [3 errors]
4+
[./app.ts] 169 bytes {main} [built] [failed] [3 errors]
55

66
ERROR in tsconfig.json
77
[tsl] ERROR
@@ -12,4 +12,5 @@ ERROR in tsconfig.json
1212
 TS6046: Argument for '--target' option must be: 'es3', 'es5', 'es6', 'es2015', 'es2016', 'es2017', 'es2018', 'esnext'.
1313

1414
ERROR in ./app.ts
15-
Module build failed: error while parsing tsconfig.json
15+
Module build failed: Error: error while parsing tsconfig.json
16+
at Object.loader (dist\index.js:18:18)

test/comparison-tests/tsconfigInvalidFile/expectedOutput-2.9/bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
/*! no static exports found */
9494
/***/ (function(module, exports) {
9595

96-
eval("throw new Error(\"Module build failed: /u001b[31mA file specified in tsconfig.json could not be found: C://source//ts-loader//.test//tsconfigInvalidFile//i-am-a-file-what-does-not-exist.ts/u001b[39m\");\n\n//# sourceURL=webpack:///./app.ts?");
96+
eval("throw new Error(\"Module build failed: Error: /u001b[31mA file specified in tsconfig.json could not be found: C://source//ts-loader//.test//tsconfigInvalidFile//i-am-a-file-what-does-not-exist.ts/u001b[39m/n at Object.loader (C://source//ts-loader//dist//index.js:18:18)\");\n\n//# sourceURL=webpack:///./app.ts?");
9797

9898
/***/ })
9999

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Asset Size Chunks Chunk Names
2-
bundle.js 3.94 KiB main [emitted] main
2+
bundle.js 4.03 KiB main [emitted] main
33
Entrypoint main = bundle.js
4-
[./app.ts] 200 bytes {main} [built] [failed] [1 error]
4+
[./app.ts] 275 bytes {main} [built] [failed] [1 error]
55

66
ERROR in ./app.ts
7-
Module build failed: A file specified in tsconfig.json could not be found: i-am-a-file-what-does-not-exist.ts
7+
Module build failed: Error: A file specified in tsconfig.json could not be found: i-am-a-file-what-does-not-exist.ts
8+
at Object.loader (dist\index.js:18:18)

test/comparison-tests/tsconfigNotReadable/expectedOutput-2.9/bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
/*! no static exports found */
9494
/***/ (function(module, exports) {
9595

96-
eval("throw new Error(\"Module build failed: /u001b[31merror while reading tsconfig.json:/u001b[39m/r/n/u001b[31m/u001b[90m[tsl] /u001b[31m/u001b[1m/u001b[31mERROR/u001b[31m/u001b[22m/u001b[1m/u001b[31m in /u001b[31m/u001b[22m/u001b[1m/u001b[36mC://source//ts-loader//.test//tsconfigNotReadable//tsconfig.json(5,2)/u001b[31m/u001b[22m/u001b[39m/r/n/u001b[31m/u001b[1m/u001b[31m TS1109: Expression expected./u001b[31m/u001b[22m/u001b[39m\");\n\n//# sourceURL=webpack:///./app.ts?");
96+
eval("throw new Error(\"Module build failed: Error: /u001b[31merror while reading tsconfig.json:/u001b[39m/r/n/u001b[31m/u001b[90m[tsl] /u001b[31m/u001b[1m/u001b[31mERROR/u001b[31m/u001b[22m/u001b[1m/u001b[31m in /u001b[31m/u001b[22m/u001b[1m/u001b[36mC://source//ts-loader//.test//tsconfigNotReadable//tsconfig.json(5,2)/u001b[31m/u001b[22m/u001b[39m/r/n/u001b[31m/u001b[1m/u001b[31m TS1109: Expression expected./u001b[31m/u001b[22m/u001b[39m/n at Object.loader (C://source//ts-loader//dist//index.js:18:18)\");\n\n//# sourceURL=webpack:///./app.ts?");
9797

9898
/***/ })
9999

test/comparison-tests/tsconfigNotReadable/expectedOutput-2.9/bundle.transpiled.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
/*! no static exports found */
9494
/***/ (function(module, exports) {
9595

96-
eval("throw new Error(\"Module build failed: /u001b[31merror while reading tsconfig.json:/u001b[39m/r/n/u001b[31m/u001b[90m[tsl] /u001b[31m/u001b[1m/u001b[31mERROR/u001b[31m/u001b[22m/u001b[1m/u001b[31m in /u001b[31m/u001b[22m/u001b[1m/u001b[36mC://source//ts-loader//.test//tsconfigNotReadable.transpile//tsconfig.json(5,2)/u001b[31m/u001b[22m/u001b[39m/r/n/u001b[31m/u001b[1m/u001b[31m TS1109: Expression expected./u001b[31m/u001b[22m/u001b[39m\");\n\n//# sourceURL=webpack:///./app.ts?");
96+
eval("throw new Error(\"Module build failed: Error: /u001b[31merror while reading tsconfig.json:/u001b[39m/r/n/u001b[31m/u001b[90m[tsl] /u001b[31m/u001b[1m/u001b[31mERROR/u001b[31m/u001b[22m/u001b[1m/u001b[31m in /u001b[31m/u001b[22m/u001b[1m/u001b[36mC://source//ts-loader//.test//tsconfigNotReadable.transpile//tsconfig.json(5,2)/u001b[31m/u001b[22m/u001b[39m/r/n/u001b[31m/u001b[1m/u001b[31m TS1109: Expression expected./u001b[31m/u001b[22m/u001b[39m/n at Object.loader (C://source//ts-loader//dist//index.js:18:18)\");\n\n//# sourceURL=webpack:///./app.ts?");
9797

9898
/***/ })
9999

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
Asset Size Chunks Chunk Names
2-
bundle.js 4.21 KiB main [emitted] main
2+
bundle.js 4.29 KiB main [emitted] main
33
Entrypoint main = bundle.js
4-
[./app.ts] 447 bytes {main} [built] [failed] [1 error]
4+
[./app.ts] 522 bytes {main} [built] [failed] [1 error]
55

66
ERROR in ./app.ts
7-
Module build failed: error while reading tsconfig.json:
7+
Module build failed: Error: error while reading tsconfig.json:
88
[tsl] ERROR in tsconfig.json(5,2)
9-
 TS1109: Expression expected.
9+
 TS1109: Expression expected.
10+
at Object.loader (dist\index.js:18:18)
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
Asset Size Chunks Chunk Names
2-
bundle.js 4.2 KiB main [emitted] main
1+
Asset Size Chunks Chunk Names
2+
bundle.js 4.28 KiB main [emitted] main
33
Entrypoint main = bundle.js
4-
[./app.ts] 437 bytes {main} [built] [failed] [1 error]
4+
[./app.ts] 512 bytes {main} [built] [failed] [1 error]
55

66
ERROR in ./app.ts
7-
Module build failed: error while reading tsconfig.json:
7+
Module build failed: Error: error while reading tsconfig.json:
88
[tsl] ERROR in tsconfig.json(5,2)
9-
 TS1109: Expression expected.
9+
 TS1109: Expression expected.
10+
at Object.loader (dist\index.js:18:18)

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6587,9 +6587,9 @@ typedarray@^0.0.6, typedarray@~0.0.5:
65876587
version "0.0.6"
65886588
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
65896589

6590-
typescript@^2.7.2:
6591-
version "2.9.1"
6592-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.1.tgz#fdb19d2c67a15d11995fd15640e373e09ab09961"
6590+
typescript@^2.9.2:
6591+
version "2.9.2"
6592+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.2.tgz#1cbf61d05d6b96269244eb6a3bce4bd914e0f00c"
65936593

65946594
uglify-es@^3.3.4:
65956595
version "3.3.9"

0 commit comments

Comments
 (0)