Skip to content
Closed
Prev Previous commit
Next Next commit
Add another test
  • Loading branch information
weswigham committed Jun 29, 2016
commit 7894136f29cf51e4407dbb34bbfb3776a6b7af8f
1 change: 0 additions & 1 deletion tests/cases/project/realisticNpmTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"inputFiles": [
"index.ts"
],
"declaration": true,
"baselineCheck": true,
"moduleResolution": "node"
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are not specifying allowJs, that's why this is working even with the above bug, as you are never even checking for .js files.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'doh. It's just added by default in so many places that I thought this may be one of them. Added and fixed.

9 changes: 9 additions & 0 deletions tests/cases/project/realisticNpmTypes2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"scenario": "Realistic npm package types with package.json",
"projectRoot": "tests/cases/projects/realisticNpmTypes2",
"inputFiles": [
"index.ts"
],
"baselineCheck": true,
"moduleResolution": "node"
}
6 changes: 6 additions & 0 deletions tests/cases/projects/realisticNpmTypes2/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import m1 = require("m1");

const val = m1("works", 42);
void `${m1.name}: ${val}`;

export {m1};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.