diff --git a/tests/cases/unittests/tsconfigParsing.ts b/tests/cases/unittests/tsconfigParsing.ts index 3603d22f314..118f15745cb 100644 --- a/tests/cases/unittests/tsconfigParsing.ts +++ b/tests/cases/unittests/tsconfigParsing.ts @@ -82,5 +82,25 @@ namespace ts { it("returns object with error when json is invalid", () => { assertParseError("invalid"); }); + + it("returns object when users correctly specify library", () => { + assertParseResult( + `{ + "compilerOptions": { + "library": "es5" + } + }`, { + config: { compilerOptions: { library: "es5" } } + }); + + assertParseResult( + `{ + "compilerOptions": { + "library": "es5,es6" + } + }`, { + config: { compilerOptions: { library: "es5,es6" } } + }); + }); }); }