11import * as vscode from 'vscode'
22import node from '../services/node'
33
4+ // TODO: use tap parser to make it easier to support other test runners
5+
46// ensure only latest run_test action is taken
57let currentId = 0
68
@@ -35,12 +37,6 @@ async function runTest({onSuccess, onFail, onRun, onError}: Props): Promise<void
3537
3638const outputChannelName = 'Test Output'
3739
38- // TODO: validate test directory from package.json exists
39- // let testFile = path.join('test');
40- // if (!await exists(testFile)) {
41- // return emptyTasks;
42- // }
43-
4440// TODO: verify test runner for args
4541// jest CLI docs https://jestjs.io/docs/en/cli
4642const testArgs = [
@@ -51,12 +47,6 @@ async function runTest({onSuccess, onFail, onRun, onError}: Props): Promise<void
5147'--maxWorkers=4'
5248]
5349
54- // if .git repo, use --onlyChanged
55- // const hasGit = path.join('.git');
56- // if (await exists(hasGit)) {
57- // testArgs.push('--onlyChanged')
58- // }
59-
6050const commandLine = `npm test --${ testArgs . join ( ' ' ) } `
6151
6252try {