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

Errors line description not showing on the report #130

Closed
janppires opened this issue Jun 16, 2016 · 1 comment
Closed

Errors line description not showing on the report #130

janppires opened this issue Jun 16, 2016 · 1 comment
Milestone

Comments

@janppires
Copy link

I am using webpack with karma, with Alternative usage configured. How can I enable the line where the error is?
Useful information:

webpack.config

devtool: 'inline-source-map'

karma.config

var path = require('path');
var webpackConfig = require('./webpack.config');
var entry = path.resolve(webpackConfig.entry.bundle);
var preprocessors = {};
preprocessors[entry] = ['webpack', 'sourcemap'];

module.exports = function(config) {
  config.set({
      browsers: ['PhantomJS'],
      frameworks: ['mocha', 'chai-jquery', 'jquery-2.1.0', 'sinon-chai'],
      reporters: ['mocha'],
      logLevel: config.LOG_INFO,
      autoWatch: true,
      singleRun: false,
      colors: true,
      port: 9876,
      basePath: '',
      files: [
          entry,
          'node_modules/chai-angular/chai-angular.js'
      ],

      // list of files to exclude
      exclude: [],
      webpack : webpackConfig,
      preprocessors: preprocessors,
      concurrency: Infinity,

      // omit plugins to allow automatic inclusion
      // plugins :[]
  })

Actual result:

FAILED TESTS:
  The AdNetworks Data Service
    when the service is accessed
      ✖ reloads networks from the api and also returns a promise
        PhantomJS 2.1.1 (Mac OS X 0.0.0)
      expected [ Array(4) ] to be a resource and deeply equal [ Array(4) ], but was [ Array(4) ]

      ✖ reloads networks and transforms data properly
        PhantomJS 2.1.1 (Mac OS X 0.0.0)
      expected false to be true

Expected a result with in which line the error has occurred, like

src/main/webapp/app/data-services/adnetworks/adnetworks-data.service.spec.js:102:22

Thanks!

@codymikol
Copy link
Owner

It seems that this mostly had to do with the mocha reporter, but this is from so long ago that I can't triage. If you are still having this problem by chance, feel free to open another issue with the current information and I'll be happy to assist!

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