Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Trying to run a single test in Intellij/PHPStorm causes the Karma Server to crash with the following output:
19 01 2021 16:44:12.021:INFO [karma-server]: Karma v5.2.3 server started at http://localhost:9876/
19 01 2021 16:44:12.024:INFO [launcher]: Launching browsers ChromeHeadlessCI with concurrency unlimited
19 01 2021 16:44:12.028:INFO [launcher]: Starting browser ChromeHeadless
✔ Browser application bundle generation complete.
19 01 2021 16:44:20.402:INFO [Chrome Headless 87.0.4280.141 (Mac OS 10.15.7)]: Connected on socket gLWtLHOz03dwk78hAAAA with id 59490450
19 01 2021 16:44:20.546:WARN [karma]: Error during refresh file list. TypeError: Cannot read property 'push' of undefined
at ...../node_modules/karma/lib/reporters/multi.js:11:61
at Array.forEach (<anonymous>)
at MultiReporter.addAdapter (..../node_modules/karma/lib/reporters/multi.js:11:21)
at Server.<anonymous> (..../node_modules/karma/lib/middleware/runner.js:97:18)
at Object.onceWrapper (node:events:434:26)
at Server.emit (node:events:339:22)
at Executor.schedule (..../node_modules/karma/lib/executor.js:31:20)
at ..../node_modules/karma/lib/middleware/runner.js:42:18
19 01 2021 16:44:20.552:ERROR [karma-server]: UncaughtException:: Cannot read property 'write' of null
19 01 2021 16:44:20.558:ERROR [karma-server]: TypeError: Cannot read property 'write' of null
at ..../Library/Application Support/JetBrains/PhpStorm2020.3/plugins/js-karma/js_reporter/karma-intellij/lib/intellijReporter.js:151:12
at processTicksAndRejections (node:internal/process/task_queues:75:11)
19 01 2021 16:44:20.559:ERROR [karma-server]: UncaughtException:: Cannot read property 'write' of null
19 01 2021 16:44:20.559:ERROR [karma-server]: TypeError: Cannot read property 'write' of null
at ...../Library/Application Support/JetBrains/PhpStorm2020.3/plugins/js-karma/js_reporter/karma-intellij/lib/intellijReporter.js:151:12
at processTicksAndRejections (node:internal/process/task_queues:75:11)
Process finished with exit code 1
Adding Karma's baseReporterDecorator solves this issue.