Skip to content

Commit a6e494f

Browse files
authored
Improve contributing experience (#1838)
- speedup tsc using incremental flag - add Mocha Explorer VSCode extension support
1 parent 16a21de commit a6e494f

File tree

8 files changed

+282
-446
lines changed

8 files changed

+282
-446
lines changed

.config/mocha.test-explorer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extension": ["ts"],
3+
"package": "./package.json",
4+
"require": "ts-node/register",
5+
"slow": 500,
6+
"spec": ["src/**/*.test.ts"],
7+
"ignore": ["src/test/slow/visual.test.ts"],
8+
"timeout": 0,
9+
"watch-files": ["src/**/*.ts"]
10+
}

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"hbenl.vscode-test-explorer",
4+
"hbenl.vscode-mocha-test-adapter"
5+
]
6+
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
"prettier.enable": true,
1010
"prettier.configPath": ".config/.prettierrc.json",
1111
"prettier.ignorePath": ".config/.prettierignore",
12-
"eslint.workingDirectories": [".", "./example"]
12+
"eslint.workingDirectories": [".", "./example"],
13+
"mochaExplorer.configFile": ".config/mocha.test-explorer.json"
1314
}

0 commit comments

Comments
 (0)