Skip to content

Commit 01fdb4a

Browse files
committed
chore(build): remove karma preprocessors
Custom karma preprocessors are no longer being used after 1676 and 1597
1 parent be7504d commit 01fdb4a

File tree

4 files changed

+4
-98
lines changed

4 files changed

+4
-98
lines changed

DEVELOPER.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ You can selectively run either the JS or Dart versions as follows:
155155

156156
You can run just the unit tests as follows:
157157

158-
* `$(npm bin)/gulp test.unit.js`: JS tests in a browser; runs in **watch mode** (i.e. karma
158+
* `$(npm bin)/gulp test.unit.js`: JS tests in a browser; runs in **watch mode** (i.e.
159159
watches the test files for changes and re-runs tests when files are updated).
160160
* `$(npm bin)/gulp test.unit.cjs`: JS tests in NodeJS; runs in **watch mode**.
161161
* `$(npm bin)/gulp test.unit.dart`: Dart tests in Dartium; runs in **watch mode**.
@@ -166,15 +166,14 @@ If you prefer running tests in "single-run" mode rather than watch mode use:
166166
* `$(npm bin)/gulp test.unit.cjs/ci`
167167
* `$(npm bin)/gulp test.unit.dart/ci`
168168

169+
The task updates the dist folder with transpiled code whenever a source or test file changes, and
170+
Karma is run against the new output.
171+
169172
**Note**: If you want to only run a single test you can alter the test you wish to run by changing
170173
`it` to `iit` or `describe` to `ddescribe`. This will only run that individual test and make it
171174
much easier to debug. `xit` and `xdescribe` can also be useful to exclude a test and a group of
172175
tests respectively.
173176

174-
**Note for transpiler tests**: The karma preprocessor is setup in a way so that after every test
175-
run the transpiler is reloaded. With that it is possible to make changes to the preprocessor and
176-
run the tests without exiting karma (just touch a test file that you would like to run).
177-
178177
### E2e tests
179178

180179
1. `$(npm bin)/gulp build.js.cjs` (builds benchpress and tests into `dist/js/cjs` folder).

karma.conf.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/transpiler/karma-traceur-preprocessor.js

Lines changed: 0 additions & 56 deletions
This file was deleted.

tools/transpiler/karma-ts2dart-preprocessor.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)