Skip to content

Commit 1d4f2b0

Browse files
committed
Tests
1 parent 1c68f73 commit 1d4f2b0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

test/unit/commandLineParser.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ describe("command line", () => {
2222
});
2323

2424
test("should error on tsconfig-only options", () => {
25-
const result = tstl.parseCommandLine(["--tsTransformers"]);
25+
const result = tstl.parseCommandLine(["--tsTransformers", "transformer"]);
2626

2727
expect(result.errors).toHaveDiagnostics();
28+
expect(result.options.tsTransformers).toBeUndefined();
29+
expect(result.fileNames).toEqual(["transformer"]);
2830
});
2931

3032
test("should error on unknown options", () => {

test/unit/transformers.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ test("should load ts transformers", () => {
2020
testTransform(path.join(__dirname, "transformers/resolve.ts"));
2121
});
2222

23-
test.todo("should error on ts transformers if ts-node is not installed");
24-
test.todo("should resolve modules from node_modules");
25-
2623
test("should pass program to transformers", () => {
2724
const transform = path.join(__dirname, "transformers/program.ts");
2825
const options: tstl.CompilerOptions = { tsTransformers: [{ transform }] };

0 commit comments

Comments
 (0)