Skip to content

Commit 0e105ad

Browse files
committed
Log more usefully when this test fails
1 parent 19cc427 commit 0e105ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/harness/unittests/typingsInstaller.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1057,11 +1057,12 @@ namespace ts.projectSystem {
10571057
const host = createServerHost([app, jquery, chroma]);
10581058
const logger = trackingLogger();
10591059
const result = JsTyping.discoverTypings(host, logger.log, [app.path, jquery.path, chroma.path], getDirectoryPath(<Path>app.path), safeList, emptyMap, { enable: true }, emptyArray);
1060-
assert.deepEqual(logger.finish(), [
1060+
const finish = logger.finish();
1061+
assert.deepEqual(finish, [
10611062
'Inferred typings from file names: ["jquery","chroma-js"]',
10621063
"Inferred typings from unresolved imports: []",
10631064
'Result: {"cachedTypingPaths":[],"newTypingNames":["jquery","chroma-js"],"filesToWatch":["/a/b/bower_components","/a/b/node_modules"]}',
1064-
]);
1065+
], finish.join("\r\n"));
10651066
assert.deepEqual(result.newTypingNames, ["jquery", "chroma-js"]);
10661067
});
10671068

0 commit comments

Comments
 (0)