Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've added mocha integration into gulp. I'll describe the tasks in full on the wiki, but what's new here is:
gulp test
transpiles all code (src
andtest
) and runs all tests.gulp test.single --file $FILE
transpiles all ofsrc
as well as$FILE
, and runs the transpiled form of$FILE
as a mocha test in the same process.$FILE
should be a TypeScript file.The purpose of the latter file is to make it super easy to debug a TypeScript mocha test file in VS Code. Given the following configuration:
This makes it so that when VS Code is told to "Start Debugging" (F5), it will automatically take the currently open file, transpile it, and run it as a Mocha test suite.