{"action":"opened","issue":{"url":"https://api.github.com/repos/webpack/karma-webpack/issues/132","repository_url":"https://api.github.com/repos/webpack/karma-webpack","labels_url":"https://api.github.com/repos/webpack/karma-webpack/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/webpack/karma-webpack/issues/132/comments","events_url":"https://api.github.com/repos/webpack/karma-webpack/issues/132/events","html_url":"https://github.com/webpack/karma-webpack/issues/132","id":162297807,"number":132,"title":"How can I debug this?","user":{"login":"cellog","id":98250,"avatar_url":"https://avatars.githubusercontent.com/u/98250?v=3","gravatar_id":"","url":"https://api.github.com/users/cellog","html_url":"https://github.com/cellog","followers_url":"https://api.github.com/users/cellog/followers","following_url":"https://api.github.com/users/cellog/following{/other_user}","gists_url":"https://api.github.com/users/cellog/gists{/gist_id}","starred_url":"https://api.github.com/users/cellog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cellog/subscriptions","organizations_url":"https://api.github.com/users/cellog/orgs","repos_url":"https://api.github.com/users/cellog/repos","events_url":"https://api.github.com/users/cellog/events{/privacy}","received_events_url":"https://api.github.com/users/cellog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-25T20:18:16Z","updated_at":"2016-06-25T20:18:16Z","closed_at":null,"body":"I am running this test:\r\n\r\n```\r\nimport 'should'\r\nimport $ from 'teaspoon'\r\nimport React, { Component, PropTypes } from 'react'\r\n\r\nimport Selection from '../src/Selection.jsx'\r\n\r\ndescribe(\"Selection\", () => {\r\n  it(\"should work\", () => {\r\n    expect(true).to.be.true\r\n    expect($).to.equal($)\r\n    expect(React).to.equal(React)\r\n    expect(Component).to.equal(Component)\r\n    expect(PropTypes).to.equal(PropTypes)\r\n  })\r\n})\r\n```\r\n\r\nin a checkout of https://github/cellog/react-selection/tests\r\n\r\nwith these karma configs (first is karma.common.conf.js):\r\n\r\n```\r\n/* eslint no-var: 0, babel/object-shorthand: 0, vars-on-top: 0 */\r\nrequire('babel-register')\r\n\r\nvar isCI = process.env.CONTINUOUS_INTEGRATION === 'true'\r\nvar reporters = ['mocha', 'saucelabs', 'coverage']\r\nvar singleRun = true\r\n\r\nvar sauceParams = {\r\n  testName: \"react-selection-hoc unit tests\",\r\n  username: process.env.SAUCEUSER,\r\n  accessKey: process.env.ACCESSSAUCE,\r\n  connectOptions: {\r\n    logfile: 'sauce_connect.log'\r\n  }\r\n}\r\n\r\nvar coverageReporter = isCI ? {\r\n  reporters: [\r\n    {\r\n      type: 'lcov',\r\n      dir: 'coverage'\r\n    },\r\n    {\r\n      type: 'text'\r\n    }\r\n  ]\r\n} : {\r\n  reporters: [\r\n    {\r\n      type: 'lcov',\r\n      dir: 'coverage'\r\n    },\r\n    {\r\n      type: 'text'\r\n    }\r\n  ]\r\n}\r\nconst frameworks = ['mocha', 'sinon-chai']\r\nif (isCI) {\r\n  sauceParams.build = process.env.TRAVIS_BUILD_NUMBER\r\n} else {\r\n  sauceParams.build = `Local Testing ${process.env.CURRENTTIME}`\r\n  sauceParams.startConnect = false\r\n}\r\n\r\nmodule.exports = function(config, extraoptions) {\r\n  config.set({\r\n\r\n    basePath: '',\r\n\r\n    frameworks,\r\n\r\n    files: [\r\n      'test/boo.test.js'\r\n    ],\r\n\r\n    preprocessors: {\r\n      'test/boo.test.js': ['webpack'],\r\n    },\r\n\r\n    webpack: require('./test/test.config.es6.js'),\r\n\r\n    webpackMiddleware: {\r\n      noInfo: true\r\n    },\r\n\r\n    reporters: reporters,\r\n\r\n    mochaReporter: {\r\n      output: 'autowatch'\r\n    },\r\n\r\n    port: 9876,\r\n\r\n    colors: true,\r\n\r\n    logLevel: config.LOG_INFO,\r\n\r\n    autoWatch: true,\r\n\r\n    sauceLabs: sauceParams,\r\n\r\n    coverageReporter,\r\n\r\n    captureTimeout: 2400000,\r\n    browserNoActivityTimeout: 240000,\r\n\r\n    singleRun,\r\n\r\n    ...extraoptions\r\n  })\r\n}\r\n```\r\n\r\nhere is the webpack config (tests/test.config.es6.js):\r\n\r\n```\r\nconst stuff = {\r\n\r\n  output: {\r\n    pathinfo: true\r\n  },\r\n\r\n  module: {\r\n    preLoaders: [\r\n      { test: /\\.js$/, loader: 'isparta', include: /src/, exclude: 'index.js' },\r\n      { test: /\\.jsx$/, loader: 'isparta', include: /src/}\r\n    ],\r\n    loaders: [\r\n      { test: /\\.js/, loader: 'babel-loader', exclude: /node_modules/ },\r\n    ]\r\n  },\r\n\r\n  devtool: 'inline-source-map'\r\n}\r\n\r\nexport default stuff\r\n```\r\n\r\nand this one as the primary (karma.ie.conf.js):\r\n\r\n```\r\n/* eslint no-var: 0, babel/object-shorthand: 0, vars-on-top: 0 */\r\nrequire('babel-register')\r\nvar karma = require('./karma-common.conf.js')\r\nvar browsers = require('./test/onlyie.js')\r\n\r\nmodule.exports = function(config) {\r\n  return karma(config, {\r\n    customLaunchers: browsers,\r\n    browsers: Object.keys(browsers)\r\n  })\r\n}\r\n```\r\n\r\nonlyie.js is:\r\n\r\n```\r\nconst browsers = {\r\n  sl_edge_10_13: {\r\n    base: 'SauceLabs',\r\n    browserName: 'MicrosoftEdge',\r\n    platform: 'Windows 10',\r\n    version: '13.10586'\r\n  },\r\n  sl_ie_10_11: {\r\n    base: 'SauceLabs',\r\n    browserName: 'internet explorer',\r\n    platform: 'Windows 10',\r\n    version: '11.103'\r\n  },\r\n  sl_ie_8_10: {\r\n    base: 'SauceLabs',\r\n    browserName: 'internet explorer',\r\n    platform: 'Windows 8',\r\n    version: '10'\r\n  }\r\n}\r\nexport default browsers\r\n```\r\n\r\nand using this script to run the tests after starting sc 4.3.16:\r\n\r\n```\r\n#!/usr/bin/env bash\r\nnpm run lint\r\nexport SAUCEUSER=\"[replaced with my sauce user]\"\r\nexport ACCESSSAUCE=\"[replaced with my sauce access key]\"\r\nexport CURRENTTIME=$(date +%Y%m%d-%H%M%S)\r\n#./node_modules/karma/bin/karma start karma.quicktest.conf.js\r\n#./node_modules/karma/bin/karma start karma.ios.conf.js\r\n#./node_modules/karma/bin/karma start karma.noie.conf.js\r\n./node_modules/karma/bin/karma start karma.ie.conf.js\r\n./node_modules/.bin/lcov-result-merger 'coverage/*/lcov.info' 'coverage/lcov.info'\r\n```\r\n\r\nNow here's the kicker: If I remove the \"import Selection from '../src/Selection.jsx'\" line, the test works.  If I leave it in, Edge 13 on Windows 10 hangs indefinitely.  I don't see any errors when I take control and check developer tools, but it doesn't send anything back.  How the hell can I debug this problem?  The test works just fine with a local karma on Chrome and Safari.\r\n\r\nWhat I'm running into is that every test hangs indefinitely in every browser when running them through TravisCI, and this is the smallest test I can make to reproduce the issue.  Note that I'm not even *using* the Selection code, just including it into the file."}}
{"actor":{"display_login":"cellog"}}