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

[Question] Is there a way to view the webpack bundle that gets produced by running 'grunt karma'? #3104

Closed
gwevans opened this issue Aug 7, 2018 · 1 comment

Comments

@gwevans
Copy link

gwevans commented Aug 7, 2018

I am getting an error while running grunt karma. I am using a the preprocessors key to bundle my tests into one bundle, from there I use phantomJS as my browser.

I am using

karma: {
    options: {
        preprocessors: {
             'test/testFile.js': ['webpack'],
        }
    }
}

Karma is failing due to 'unexpected token const', and points to line 9452 of testFile.js (ie the newly created bundle). This is clearly babel-loader related, and is coming from somewhere within node_modules, but I have no idea where. Is there a way to view the newly created bundle is created when running 'grunt karma'?

@johnjbarton
Copy link
Contributor

Run karma with --no-single-run http://karma-runner.github.io/2.0/config/configuration-file.html.

Then follow
I'm getting an error during the installation related to the ws module, how can I solve it?
from
http://karma-runner.github.io/2.0/intro/troubleshooting.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants