Skip to content

Commit

Permalink
If we're going to use ts-node sometimes, use it always
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Feb 12, 2022
1 parent a6e494f commit 5b536df
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .config/mocha.fast.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"timeout": 5000,
"spec": ["dist/test/**/*.test.js"],
"exclude": ["dist/test/packages/**", "dist/test/slow/**"]
"spec": ["src/test/**/*.test.ts"],
"exclude": ["src/test/packages/**", "src/test/slow/**"]
}
4 changes: 2 additions & 2 deletions .config/mocha.full.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"timeout": 0,
"spec": "dist/test/**/*.test.js",
"exclude": ["dist/test/packages/**"]
"spec": "src/test/**/*.test.ts",
"exclude": ["src/test/packages/**"]
}
2 changes: 1 addition & 1 deletion .config/mocha.test-explorer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"require": "ts-node/register",
"slow": 500,
"spec": ["src/**/*.test.ts"],
"ignore": ["src/test/slow/visual.test.ts"],
"ignore": ["src/test/slow/**", "src/test/packages/**"],
"timeout": 0,
"watch-files": ["src/**/*.ts"]
}
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ To compile the TypeDoc source, run `npm run build`. This will start the TypeScri
#### Testing
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`.
TypeDoc includes an extensive set of tests that describe its output. To validate any changes you have made run `npm test`.
This will run a subset of TypeDoc's tests intended for quick development checks.
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`.
These tests will also run the visual regression tests, failing if there are any changes.
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

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

### Thanks!

- @albyrock87

## v0.22.11 (2022-01-18)

### Features
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@
],
"scripts": {
"pretest": "node scripts/copy_test_files.js",
"test": "mocha --config .config/mocha.fast.json",
"test": "mocha -r ts-node/register --config .config/mocha.fast.json",
"pretest:full": "npm run pretest",
"test:full": "nyc mocha --config .config/mocha.full.json",
"test:full": "nyc mocha -r ts-node/register --config .config/mocha.full.json",
"test:visual": "node ./dist/test/capture-screenshots.js && reg-suit -c .config/regconfig.json compare",
"test:visual:accept": "node scripts/accept_visual_regression.js",
"prerebuild_specs": "npm run pretest",
Expand Down

0 comments on commit 5b536df

Please sign in to comment.