Skip to content

Commit 1f9d62a

Browse files
committed
Move tests to standard location
1 parent 1960606 commit 1f9d62a

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
"type": "extensionHost",
1919
"request": "launch",
2020
"runtimeExecutable": "${execPath}",
21-
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/src/test"],
21+
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test"],
2222
"stopOnEntry": false,
2323
"sourceMaps": true,
24-
"outFiles": ["${workspaceRoot}/out/src/test/**/*.js"],
24+
"outFiles": ["${workspaceRoot}/out/test/**/*.js"],
2525
"preLaunchTask": "npm: watch"
2626
}
2727
]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
"tslint-fix": "tslint --fix -p tsconfig.json -c tslint.json --format stylish 'src/**/*.ts'",
369369
"push-tag": "git tag -a $npm_package_version -m \"Version $npm_package_version\" && git push origin $npm_package_version",
370370
"pretest": "tsc -p ./",
371-
"test": "node ./out/src/test/runTest.js"
371+
"test": "node ./out/test/runTest.js"
372372
},
373373
"husky": {
374374
"hooks": {

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ async function activateServerForFolder(context: ExtensionContext, uri: Uri, fold
196196
args = args.concat(['-l', logFile]);
197197
}
198198

199-
let extraArgs: string = workspace.getConfiguration('haskell', uri).serverExtraArgs;
199+
const extraArgs: string = workspace.getConfiguration('haskell', uri).serverExtraArgs;
200200
if (extraArgs !== '') {
201201
args = args.concat(extraArgs.split(' '));
202202
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"noFallthroughCasesInSwitch": true,
1515
"strictNullChecks": true
1616
},
17-
"include": ["src/**/*"],
17+
"include": ["src/**/*", "test/**/*"],
1818
"exclude": ["node_modules", ".vscode-test"]
1919
}

0 commit comments

Comments
 (0)