Open rajkumaarb opened 4 years ago
When I tried opening up a browser and look for an actual issue, the tests were passing with the below error
Question: Why does it says script error while executing the tests from command line where as it passes the tests while executing in the browser?
While Executing karma tasks, I get Script Error
Please see the below.
Running "karma:test.accounting" (karma) task 08 06 2020 20:39:55.104:INFO [framework:karma-parallel]: sharding specs across 2 browsers 08 06 2020 20:39:56.098:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/ 08 06 2020 20:39:56.102:INFO [launcher]: Starting browser Chrome 08 06 2020 20:39:56.126:INFO [launcher]: Starting browser Chrome 08 06 2020 20:39:57.042:INFO [HeadlessChrome 83.0.4103 (Windows 10.0.0)]: Connected on socket 1QBL34ljfhxVapqsAAAA with id 88182158 HeadlessChrome 83.0.4103 (Windows 10.0.0) ERROR Script error.
08 06 2020 20:39:58.876:INFO [HeadlessChrome 83.0.4103 (Windows 10.0.0)]: Connected on socket yNmXYId4QGkY8bGGAAAB with id 18694400 HeadlessChrome 83.0.4103 (Windows 10.0.0) ERROR Script error.
Warning: Task "karma:test.accounting" failed. Use --force to continue.
Below is my karma config file.
frameworks: [ 'parallel', 'jasmine', 'jasmine-matchers' ],
parallelOptions: { executors: 2, shardStrategy: 'round-robin' },