{"action":"created","issue":{"url":"https://api.github.com/repos/karma-runner/karma-requirejs/issues/36","labels_url":"https://api.github.com/repos/karma-runner/karma-requirejs/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma-requirejs/issues/36/comments","events_url":"https://api.github.com/repos/karma-runner/karma-requirejs/issues/36/events","html_url":"https://github.com/karma-runner/karma-requirejs/issues/36","id":89260034,"number":36,"title":"change the default test-main to strip the base and .js extensions so that sub dependencies load","user":{"login":"lukeapage","id":309321,"avatar_url":"https://avatars.githubusercontent.com/u/309321?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeapage","html_url":"https://github.com/lukeapage","followers_url":"https://api.github.com/users/lukeapage/followers","following_url":"https://api.github.com/users/lukeapage/following{/other_user}","gists_url":"https://api.github.com/users/lukeapage/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeapage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeapage/subscriptions","organizations_url":"https://api.github.com/users/lukeapage/orgs","repos_url":"https://api.github.com/users/lukeapage/repos","events_url":"https://api.github.com/users/lukeapage/events{/privacy}","received_events_url":"https://api.github.com/users/lukeapage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/karma-runner/karma-requirejs/labels/discuss","name":"discuss","color":"d7e102"},{"url":"https://api.github.com/repos/karma-runner/karma-requirejs/labels/needs:%20investigation","name":"needs: investigation","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-18T10:52:38Z","updated_at":"2015-06-18T12:41:19Z","closed_at":null,"body":"as per https://github.com/karma-runner/karma/issues/513#issuecomment-48616784\r\nand https://github.com/karma-runner/karma-requirejs/issues/33\r\n\r\nand several stack overflow questions etc.\r\n\r\nthe default test-main should be adjusted to strip the `/base/` and extension so that sub dependencies are not loaded in absolute mode."},"comment":{"url":"https://api.github.com/repos/karma-runner/karma-requirejs/issues/comments/113142710","html_url":"https://github.com/karma-runner/karma-requirejs/issues/36#issuecomment-113142710","issue_url":"https://api.github.com/repos/karma-runner/karma-requirejs/issues/36","id":113142710,"user":{"login":"lukeapage","id":309321,"avatar_url":"https://avatars.githubusercontent.com/u/309321?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeapage","html_url":"https://github.com/lukeapage","followers_url":"https://api.github.com/users/lukeapage/followers","following_url":"https://api.github.com/users/lukeapage/following{/other_user}","gists_url":"https://api.github.com/users/lukeapage/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeapage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeapage/subscriptions","organizations_url":"https://api.github.com/users/lukeapage/orgs","repos_url":"https://api.github.com/users/lukeapage/repos","events_url":"https://api.github.com/users/lukeapage/events{/privacy}","received_events_url":"https://api.github.com/users/lukeapage/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T12:41:19Z","updated_at":"2015-06-18T12:41:19Z","body":"> Would that resolve the need for appending .js at the end of the files?\r\n\r\nyes. by default requirejs adds .js to files, but when a file is required with a absolute url and extension, all dependencies are loaded as-is. So removing the absolute part of the url and the file extension means that you get back the normal requirejs behaviour where the file extension is not required when you require from within a test.\r\n\r\nI believe this is the same as #27 - though the person there is not removing the file extension and in my tests that is also required.\r\n\r\nand yes this is the same as #7.\r\n\r\nSorry for the duplicate.. I didn't find those issues, but this problem seems to hit *alot* of people and it took an hour or so of searching to work out the problem."}}