{"action":"opened","issue":{"url":"https://api.github.com/repos/karma-runner/karma/issues/1799","labels_url":"https://api.github.com/repos/karma-runner/karma/issues/1799/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma/issues/1799/comments","events_url":"https://api.github.com/repos/karma-runner/karma/issues/1799/events","html_url":"https://github.com/karma-runner/karma/issues/1799","id":126237885,"number":1799,"title":"Files in the 'files' config have incorrect path on Windows","user":{"login":"maheshjag","id":1705603,"avatar_url":"https://avatars.githubusercontent.com/u/1705603?v=3","gravatar_id":"","url":"https://api.github.com/users/maheshjag","html_url":"https://github.com/maheshjag","followers_url":"https://api.github.com/users/maheshjag/followers","following_url":"https://api.github.com/users/maheshjag/following{/other_user}","gists_url":"https://api.github.com/users/maheshjag/gists{/gist_id}","starred_url":"https://api.github.com/users/maheshjag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maheshjag/subscriptions","organizations_url":"https://api.github.com/users/maheshjag/orgs","repos_url":"https://api.github.com/users/maheshjag/repos","events_url":"https://api.github.com/users/maheshjag/events{/privacy}","received_events_url":"https://api.github.com/users/maheshjag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-12T18:01:43Z","updated_at":"2016-01-12T18:01:43Z","closed_at":null,"body":"With the following config in `karma.conf.js`\r\n\r\n    files: [\r\n            {pattern: 'node_modules/chai/chai.js', included: false},\r\n            {pattern: 'src/**/*.js', included: false},\r\n            {pattern: 'test/**/*.js', included: false}\r\n        ]\r\n\r\nwhen I view the available files for possible filtering in `test-main.js` (I use `require.js`)\r\n\r\n    Object.keys(window.__karma__.files).forEach(function (file) {\r\n        console.log(file);\r\n    });\r\n\r\nI get file names like '/basesrc/Jxl.js', '/basesrc/core/Finalizer.js' and so on in Windows (note the absence of the forward slash between /base and src.\r\n\r\nIn OSX, the files are correctly reported as '/base/src/Jxl.js', '/base/src/core/Finalizer.js' and so on. This is causing a situation wherein I'm having to fudge the paths manually before running tests on Windows."}}