Closed yaroslavya closed 7 years ago
Thanks for the repo. I have sent you the PR.
The major issue was that the vendor file in the entry patterns needs to have .js
as specified in the docs. The error is actually displayed after those that you have listed:
Specified entry pattern "test/vendor.ts" does not match any file.
Apart from fixing the error, I have added .scss
pattern to the wallaby webpack config and the files
list as your app is using them. I have also add the template loader, though you're nt using templateUrls yet, but juts in case if you do use them in future.
Please also note that as you're using node-sass loader to compile .scss
file, you'll need to change the node.js version in Run Configuration that wallaby WebStorm integration is using by default to point to your system node:
Issue description or question
Created a setup for the angular2 with the wallabyjs and have some strange errors like "Runtime error: ReferenceError: Can't find variable: Map" Couple of errors are in the errors section below. I have also created a repo that reproduce the bug: https://github.com/yaroslavya/ng2-wallaby Note, that build is successful and karma tests are running normally without any errors. Thats why Im not sure what is wrong in my setup. Took the config mostly from my previous experiement with AngularClass setup. Let me know if you need more info or anything.
ERRORS:
ReferenceError: Can't find variable: Map at test/unit/simple.test.ts:1
ReferenceError: Can't find variable: Map at http://localhost:63197/__modules/26.js?1488911230353:80
Wallaby.js configuration file
Code editor or IDE name and version
WebStorm 2016.3.1
OS name and version
Windows 7