-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The latest release of zodern:types is able to pull type declarations from a Meteor checkout, if it's being used, instead of only from the package repository (which may not contain the latest changes). This means that we should be able to re-enable the TypeScript test, which verifies that the TypeScript skeleton does, in fact, produce a project which passes type checking. (Re-enabling the test also picked up a few latent bugs in the type declarations, so fix those as well)
- Loading branch information
Showing
3 changed files
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
// var selftest = require('../tool-testing/selftest.js'); | ||
// var Sandbox = selftest.Sandbox; | ||
// | ||
// selftest.define("typescript template works", function () { | ||
// const s = new Sandbox; | ||
// | ||
// let run = s.run("create", "--typescript", "typescript"); | ||
// | ||
// run.waitSecs(60); | ||
// run.match("Created a new Meteor app in 'typescript'."); | ||
// run.match("To run your new app"); | ||
// | ||
// s.cd("typescript"); | ||
// | ||
// run = s.run("npm", "install"); | ||
// run.expectExit(0); | ||
// | ||
// run = s.run("lint"); | ||
// run.waitSecs(60); | ||
// run.match("[zodern:types] Exiting \"meteor lint\" early"); | ||
// run.expectExit(0); | ||
// | ||
// run = s.run("npx", "tsc"); | ||
// run.waitSecs(60); | ||
// run.expectEnd(); | ||
// run.expectExit(0); | ||
// }); | ||
var selftest = require('../tool-testing/selftest.js'); | ||
var Sandbox = selftest.Sandbox; | ||
|
||
selftest.define("typescript template works", function () { | ||
const s = new Sandbox; | ||
|
||
let run = s.run("create", "--typescript", "typescript"); | ||
|
||
run.waitSecs(60); | ||
run.match("Created a new Meteor app in 'typescript'."); | ||
run.match("To run your new app"); | ||
|
||
s.cd("typescript"); | ||
|
||
run = s.run("npm", "install"); | ||
run.expectExit(0); | ||
|
||
run = s.run("lint"); | ||
run.waitSecs(60); | ||
run.match("[zodern:types] Exiting \"meteor lint\" early"); | ||
run.expectExit(0); | ||
|
||
run = s.run("npx", "tsc"); | ||
run.waitSecs(60); | ||
run.expectEnd(); | ||
run.expectExit(0); | ||
}); |