Closed mobiledeve closed 7 years ago
Could you please create and share a full sample repo where the issue could be reproduced? I'm happy to have a look and help with the config.
I have committed the project with this issue to https://github.com/mobiledeve/WallabyTest
Can you please have a look? If possible, maybe you can update the repository directly if you think some changes need to be done to make Wallabyjs work with this project.
Thank you very much!
A few more details: I'm using Visual Studio 2015, I have TypeScript 2.3.3 for Visual Studio installed, I have Wallabyjs for VS 2015 installed.
Thanks for the repo, I have sent you the pull request to make it work.
Note that when you keep adding more tests/components to your angular app, you may need to configure System.js to correctly load templates/styles, for example by using a special loader (not related to wallaby).
If you do so, then don't forget to include your templates/styles to the files
list and obviously you'll need to add the loader as well.
Thank you so much! It worked! You are really nice and helpful!
Issue description or question
I got the following errors when starting wallaby.js, and I have been scratching my head for a few days. Also, I think because wallaby.js failed to run, all lines are showing grey square for the code coverage.
I appreciated it very much for your help!
wallaby.js started core v1.0.455
Runtime error: Uncaught ReferenceError: exports is not defined at http://localhost:15328/app/RelationService.spec.js?1500549252726&wallabyFileId=5:3 Runtime error: Uncaught ReferenceError: exports is not defined at http://localhost:15328/app/DateTimeFormatter.spec.js?1500549252770&wallabyFileId=7:3 Runtime error: Uncaught Error: (SystemJS) http://localhost:15328/app/1st.spec.js did not call System.register or AMD define. If loading a global module configure the global name via the meta exports property for script injection support. Error: http://localhost:15328/app/1st.spec.js did not call System.register or AMD define. If loading a global module configure the global name via the meta exports property for script injection support. at ZoneDelegate.invokeTask (http://localhost:15328/node_modules/zone.js/dist/zone.js?636360992094303900&wallabyFileId=22:424:31) at Zone.runTask (http://localhost:15328/node_modules/zone.js/dist/zone.js?636360992094303900&wallabyFileId=22:191:47) at ZoneTask.invokeTask [as invoke] (http://localhost:15328/node_modules/zone.js/dist/zone.js?636360992094303900&wallabyFileId=22:498:34) at invokeTask (http://localhost:15328/node_modules/zone.js/dist/zone.js?636360992094303900&wallabyFileId=22:1364:14) at HTMLScriptElement.globalZoneAwareCallback (http://localhost:15328/node_modules/zone.js/dist/zone.js?636360992094303900&wallabyFileId=22:1382:17)
Wallaby.js configuration file