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 0.13.20 does not detect files when using webpack #1894

Closed
ianks opened this issue Feb 12, 2016 · 5 comments · May be fixed by saurabharch/HireDot2#2, saurabharch/Breezeblocks#2 or saurabharch/reelcool#1

Comments

@ianks
Copy link

ianks commented Feb 12, 2016

After upgrading to 0.13.20, none of my tests ran. Sorry I cannot provide too much debugging information, but I don't know where to start.

Here is my karma.conf.js

var webpackConfig = require('./../config/webpack.config')
var path = require('path')

module.exports = function (config) {
  config.set({
    basePath: path.join(__dirname, '..'),
    autoWatch: true,
    logLevel: config.LOG_INFO,
    browsers: [ 'PhantomJS' ],
    files: [
      'http://cdn.auth0.com/js/lock-8.2.1.min.js',
      'test/index.js'
    ],
    port: 8080,
    captureTimeout: 60000,
    frameworks: [ 'phantomjs-shim', 'mocha', 'chai', 'sinon-chai' ],
    client: {
      mocha: {}
    },
    reporters: [ 'mocha' ],
    preprocessors: {
      'test/index.js': [ 'webpack', 'sourcemap' ]
    },
    webpack: webpackConfig,
    webpackServer: {
      noInfo: true
    }
  })
}

With a simple index.js for webpack

require('es6-promise').polyfill();
const testsContext = require.context('../.tmp/test', true, /Test$/);
testsContext.keys().forEach(testsContext);
@filipearena
Copy link

+1

1 similar comment
@americoneto1
Copy link

+1

@dignifiedquire
Copy link
Member

This is due to #1791 @budde377 could you check this out please if you get a moment?

dignifiedquire added a commit to dignifiedquire/karma that referenced this issue Feb 12, 2016
…dding-no-colors-to-run-command"

Fixes karma-runner#1894, karma-runner#1895

This reverts commit 56073fc, reversing
changes made to b7d591f.
dignifiedquire added a commit to dignifiedquire/karma that referenced this issue Feb 12, 2016
…dding-no-colors-to-run-command"

This reverts commit 56073fc, reversing
changes made to b7d591f.

This reverts commit 56073fc, reversing
changes made to b7d591f.

Fixes karma-runner#1894, karma-runner#1895
dignifiedquire added a commit to dignifiedquire/karma that referenced this issue Feb 12, 2016
…dding-no-colors-to-run-command"

This reverts commit 56073fc, reversing
changes made to b7d591f.

Fixes karma-runner#1894, karma-runner#1895
@dignifiedquire
Copy link
Member

Released 0.13.21 that reverts the problematic commit.

@budde377
Copy link
Member

Will do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment