Added module: none baseline

This commit is contained in:
Bill Ticehurst 2016-02-11 12:46:15 -08:00
parent 195e69c889
commit d446d06f96
3 changed files with 29 additions and 0 deletions

View file

@ -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;
}

View file

@ -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;

View file

@ -0,0 +1,5 @@
// @module: none
// @Filename: a.ts
export class Foo {
foo: string;
}