diff --git a/tests/baselines/reference/moduleNoneErrors.errors.txt b/tests/baselines/reference/moduleNoneErrors.errors.txt new file mode 100644 index 0000000000..cb943050fa --- /dev/null +++ b/tests/baselines/reference/moduleNoneErrors.errors.txt @@ -0,0 +1,10 @@ +tests/cases/compiler/a.ts(1,14): error TS1148: Cannot compile modules unless the '--module' flag is provided with a valid module type. Consider setting the 'module' compiler option in a 'tsconfig.json' file. + + +==== tests/cases/compiler/a.ts (1 errors) ==== + export class Foo { + ~~~ +!!! error TS1148: Cannot compile modules unless the '--module' flag is provided with a valid module type. Consider setting the 'module' compiler option in a 'tsconfig.json' file. + foo: string; + } + \ No newline at end of file diff --git a/tests/baselines/reference/moduleNoneErrors.js b/tests/baselines/reference/moduleNoneErrors.js new file mode 100644 index 0000000000..c18f11d24b --- /dev/null +++ b/tests/baselines/reference/moduleNoneErrors.js @@ -0,0 +1,14 @@ +//// [a.ts] +export class Foo { + foo: string; +} + + +//// [a.js] +"use strict"; +var Foo = (function () { + function Foo() { + } + return Foo; +}()); +exports.Foo = Foo; diff --git a/tests/cases/compiler/moduleNoneErrors.ts b/tests/cases/compiler/moduleNoneErrors.ts new file mode 100644 index 0000000000..c5f34a28c7 --- /dev/null +++ b/tests/cases/compiler/moduleNoneErrors.ts @@ -0,0 +1,5 @@ +// @module: none +// @Filename: a.ts +export class Foo { + foo: string; +}