-
Notifications
You must be signed in to change notification settings - Fork 109
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
Doesn't seem to work with ES Modules #345
Comments
Have you tried using the karma-typescript-es6-transform? |
I havent but why would I need that package for contents of |
commonjs may be ok, but if module is es6 or es2015 does not seem to work... An error was thrown in afterAll |
Is there any path to native ES module support for karma-typescript? |
i tried switching now trying just karma-typescript-angular2-transform with not sure what else to try ( the tests run fine when testing "dumb" angular components that don't include any services but now im trying to inject services into the component view the test bed providers and thats when the uncaught errors happen ) |
Hey,
It appears that the package does not work with ES modules using the
<script type="module">
syntax. Take this test file for instance:running it gives me this error:
Here is my karma config:
Karma configuration
The text was updated successfully, but these errors were encountered: