Skip to content

Commit 5b536df

Browse files
committed
If we're going to use ts-node sometimes, use it always
1 parent a6e494f commit 5b536df

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

.config/mocha.fast.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"timeout": 5000,
3-
"spec": ["dist/test/**/*.test.js"],
4-
"exclude": ["dist/test/packages/**", "dist/test/slow/**"]
3+
"spec": ["src/test/**/*.test.ts"],
4+
"exclude": ["src/test/packages/**", "src/test/slow/**"]
55
}

.config/mocha.full.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"timeout": 0,
3-
"spec": "dist/test/**/*.test.js",
4-
"exclude": ["dist/test/packages/**"]
3+
"spec": "src/test/**/*.test.ts",
4+
"exclude": ["src/test/packages/**"]
55
}

.config/mocha.test-explorer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"require": "ts-node/register",
55
"slow": 500,
66
"spec": ["src/**/*.test.ts"],
7-
"ignore": ["src/test/slow/visual.test.ts"],
7+
"ignore": ["src/test/slow/**", "src/test/packages/**"],
88
"timeout": 0,
99
"watch-files": ["src/**/*.ts"]
1010
}

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ To compile the TypeDoc source, run `npm run build`. This will start the TypeScri
110110
111111
#### Testing
112112
113-
TypeDoc includes an extensive set of tests that describe its output. To validate any changes you have made, build the project and then run `npm test`.
113+
TypeDoc includes an extensive set of tests that describe its output. To validate any changes you have made run `npm test`.
114114
This will run a subset of TypeDoc's tests intended for quick development checks.
115115
Tests which take more than half a second are located in `src/test/slow`, and will only be run if you run `npm run test:full`.
116116
These tests will also run the visual regression tests, failing if there are any changes.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- Fixed `const` variables not properly marked as `const`, #1866.
66

7+
### Thanks!
8+
9+
- @albyrock87
10+
711
## v0.22.11 (2022-01-18)
812

913
### Features

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
],
6565
"scripts": {
6666
"pretest": "node scripts/copy_test_files.js",
67-
"test": "mocha --config .config/mocha.fast.json",
67+
"test": "mocha -r ts-node/register --config .config/mocha.fast.json",
6868
"pretest:full": "npm run pretest",
69-
"test:full": "nyc mocha --config .config/mocha.full.json",
69+
"test:full": "nyc mocha -r ts-node/register --config .config/mocha.full.json",
7070
"test:visual": "node ./dist/test/capture-screenshots.js && reg-suit -c .config/regconfig.json compare",
7171
"test:visual:accept": "node scripts/accept_visual_regression.js",
7272
"prerebuild_specs": "npm run pretest",

0 commit comments

Comments
 (0)