19 01 2022 12:31:39.506:ERROR [karma-server]: Error: Found 1 load error
at Server.<anonymous> (/Users/patrick/my-app/node_modules/karma/lib/server.js:239:26)
at Object.onceWrapper (events.js:519:28)
at Server.emit (events.js:412:35)
at emitListeningNT (net.js:1365:10)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
I created an angular project and got a nice
angular_karma.config.js
file generated...My real world code does things like:
And I wanted to be able to alias that with webpack to a fake/mocked out version of i18n.
When I run
ng test
I get:Server start failed on port 9876: TypeError: Cannot read property 'outputPath' of undefined
so then I tried adding my test's entry point to the config:
And then
ng test
gives me: