-
Notifications
You must be signed in to change notification settings - Fork 309
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
SyntaxError with Component and multiple styleUrl files #9
Comments
This is because of regex I use: https://github.com/thymikee/jest-preset-angular/blob/master/preprocessor.js#L3. |
What happens here is we need to replace all |
I'm baaad, shamone, at regex but will give it a go :) I was hoping to find similar functionality inside Angular CLI but I believe they're using AST for stuff like this |
Ideally we would do this with ASTs, but we would need to cache it. |
@intellix I've submitted a PR for this, can you check if it works for you? |
@thymikee Much more works now, I noticed this one failed:
|
Let's move the discussion here: #10 |
When running tests with multiple CSS files we're getting a huge wall of SyntaxErrors. After hunting what is causing it, I've found a few variations which fail:
These work:
These fail:
I'm wondering if it's to do with the commas on separate lines. I have no idea where this error comes from, so apologies if I've create an issue in the wrong package :)
Error:
The text was updated successfully, but these errors were encountered: