Hi all, I am currently in a project that is migrating form AngularJS 1.5 to Angular 8. The app is working just fine but I am unable to make the Karma tests run properly. The Karma tests are giving out JS OOM error while it ran sufficiently fast earlier. Here <https://github.com/YashJipkate/oppia/blob/7f1c0368e4ca3a7197dd5ff0255a8316c37a9ecc/core/tests/karma.conf.ts> is my karma config. I have commented out many file patterns in the 'files' key of the config because they were giving out OOM. I have managed to run about 30 tests and they seem to be passing but they consume a lot of memory.
Here <https://github.com/YashJipkate/oppia/blob/7f1c0368e4ca3a7197dd5ff0255a8316c37a9ecc/core/templates/dev/head/components/state-editor/state-editor-properties-services/state-editor.service.spec.ts> is one of my spec file. I have used upgradeAdapter's registerForNg1Tests for providing the main AngularJS module to the tests. I have also set up a test-helper-app.module.ts <https://github.com/YashJipkate/oppia/blob/7f1c0368e4ca3a7197dd5ff0255a8316c37a9ecc/core/templates/dev/head/test-helper-app.module.ts> file to have a mock Angular module for the upgradeAdapter. This makes the tests pass but they are extremely memory consuming. So I wanted to ask if there is a set of "best practices" I should follow while testing AngularJS services in a hybrid. Note that all of the code is in AngularJS and there is just hybrid bootstrapping. It would be great if anyone could help me out here since this is blocking my work. Thanks! -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/6f784644-5189-4917-b13c-9772e66ba26b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
