Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5156173

Browse files
(maint) Modify tslint configuration for test files
Previously tslint was raising errors in Travis CI saying that the excluded test fixtures directory was not included in the project. This was by design however it appears to be a known bug palantir/tslint#3793. This commit removes the exclude for test files from linting and adds a tslint directive in the default index.ts file. A tslint directive is used instead of solving the issue because this is the default testing file for VS Code extesions and shouldn't really be modified unless absolutely necessary. In this instance it was safer for a tslint directive.
1 parent 0434ff8 commit 5156173

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"vscode.powershell"
5353
],
5454
"scripts": {
55-
"compile": "tsc -v && tsc -p ./ && tslint -p ./ -e test/*",
55+
"compile": "tsc -v && tsc -p ./ && tslint -p ./",
5656
"compile-watch": "tsc -watch -p ./",
5757
"postinstall": "node ./node_modules/vscode/bin/install",
5858
"test": "node ./node_modules/vscode/bin/test"

‎test/index.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// tslint:disable no-var-requires
12
let testRunner = require("vscode/lib/testrunner");
23

34
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for options

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /