Skip to content

Commit

Permalink
use --types to avoid compiling @types packages when testing the g…
Browse files Browse the repository at this point in the history
…enerated file
  • Loading branch information
mhegazy authored Apr 5, 2018
1 parent c3d4f8a commit d7f1852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function compareToBaselines() {

function compileGeneratedFile(file: string) {
try {
child_process.execSync(`node ${tscPath} --strict --lib es5 --skipLibCheck --noEmit ${path.join(outputFolder, file)}`);
child_process.execSync(`node ${tscPath} --strict --lib es5 --types --noEmit ${path.join(outputFolder, file)}`);
} catch (e) {
console.error(`Test failed: could not compile '${file}':`);
console.error(e.stdout.toString());
Expand Down

0 comments on commit d7f1852

Please sign in to comment.