Skip to content

Commit 63dcdef

Browse files
authored
Use minimal lib for projects tests (#19488)
1 parent 2a016fc commit 63dcdef

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/harness/virtualFileSystemWithWatch.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
/// <reference path="harness.ts" />
22

33
namespace ts.TestFSWithWatch {
4-
const { content: libFileContent } = Harness.getDefaultLibraryFile(Harness.IO);
54
export const libFile: FileOrFolder = {
65
path: "/a/lib/lib.d.ts",
7-
content: libFileContent
6+
content: `/// <reference no-default-lib="true"/>
7+
interface Boolean {}
8+
interface Function {}
9+
interface IArguments {}
10+
interface Number { toExponential: any; }
11+
interface Object {}
12+
interface RegExp {}
13+
interface String { charAt: any; }
14+
interface Array<T> {}`
815
};
916

1017
export const safeList = {

0 commit comments

Comments
 (0)