Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script Error while executing karma tests #58

Open
rajkumaarb opened this issue Jun 8, 2020 · 1 comment
Open

Script Error while executing karma tests #58

rajkumaarb opened this issue Jun 8, 2020 · 1 comment

Comments

@rajkumaarb
Copy link

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' },

@rajkumaarb
Copy link
Author

When I tried opening up a browser and look for an actual issue, the tests were passing with the below error

image

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant