Skip to content

Commit c5b1990

Browse files
committed
Use Harness.isDefaultLibraryFile to detect lib.d.ts
1 parent d2771a8 commit c5b1990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/loggedIO.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ namespace Playback {
268268
const files = [];
269269
for (const file of newLog.filesRead) {
270270
if (file.result.contentsPath &&
271-
!/lib\.d\.ts$/.test(file.result.contentsPath) &&
271+
Harness.isDefaultLibraryFile(file.result.contentsPath) &&
272272
/\.[tj]s$/.test(file.result.contentsPath)) {
273273
files.push(file.result.contentsPath);
274274
}

0 commit comments

Comments
 (0)