Is there a way to test angular directive which use templateUrl? If I do that I get error that my template doesn't exist. Resharper map all files so they are available under /reference/~/ folder. So if in test.js file I reference test2.js and both files are in root folder of my web app, Resharper will serve them under /reference/~/test.js and /reference/~/test2.js. Besides that Resharper only serve files which have been referenced using /// <reference path comments so I cannot change my templateUrl to be /reference/~/template.html since even if template.html exists in the same folder as test.js and test2.js it won't be served by Resharper since it wasn't referenced.
Due to this behaviour there is no way to test angular directive with external template file.