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

Karma Unit Testing Not Supported #48

Closed
jafri opened this issue Jun 7, 2017 · 2 comments
Closed

Karma Unit Testing Not Supported #48

jafri opened this issue Jun 7, 2017 · 2 comments

Comments

@jafri
Copy link

jafri commented Jun 7, 2017

Getting following error running npm run test

WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration has an unknown property 'vue'. These properties are valid:
   object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }
   For typos: please correct them.
   For loader options: webpack 2 no longer allows custom properties in configuration.
     Loaders should be updated to allow passing options via loader options in module.rules.
     Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:
     plugins: [
       new webpack.LoaderOptionsPlugin({
         // test: /\.xxx$/, // may apply this only for some modules
         options: {
           vue: ...
         }
       })
@josx
Copy link
Contributor

josx commented Jun 12, 2017

In https://github.com/misterGF/CoPilot/blob/master/test/unit/karma.conf.js#L7 is required webpack-merge which use webpack 1.x, right in copilot webpacl 2.x is default on package.json.
Also all webpack config must be changed.

@misterGF
Copy link
Owner

misterGF commented Oct 2, 2017

Thanks for the fix @josx!

@misterGF misterGF closed this as completed Oct 2, 2017
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

3 participants