Skip to content
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

Angular unit test documentation #16

Closed
kernwig opened this issue Dec 18, 2019 · 1 comment
Closed

Angular unit test documentation #16

kernwig opened this issue Dec 18, 2019 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@kernwig
Copy link
Collaborator

kernwig commented Dec 18, 2019

In order for unit testing to work with Angular (with default Jasmine and Karma), need to add webpack configuration to karma.conf.js just like webpack-custom.config.js. As an addition to the object passed to config.set, add the property:

    webpack: {
      node: {
        fs: 'empty',
        tls: 'empty',
        path: 'empty'
      }
    }
@kernwig kernwig added the documentation Improvements or additions to documentation label Dec 18, 2019
@kernwig kernwig self-assigned this Dec 18, 2019
@kernwig
Copy link
Collaborator Author

kernwig commented Feb 26, 2020

Released with client-1.1.0.

@kernwig kernwig closed this as completed Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant