grunt build before grunt test

Не работают тесты на проекте с angularjs и typescript, так как  *.js файлов скомпилированных из *.ts нет до шага build, но они подключаются во время тестов. Ошибки имеют вид: 
Controller: MainCtrl
        test to make Karma happy
	Error: [$injector:modulerr] Failed to instantiate module studioApp due to:
	Error: [$injector:nomod] Module 'studioApp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.


Tests doesn't work on project with angularjs and typescript, because *.js files compiled from *.ts is not exist, but included in test. Exception:
Controller: MainCtrl
        test to make Karma happy
	Error: [$injector:modulerr] Failed to instantiate module studioApp due to:
	Error: [$injector:nomod] Module 'studioApp' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.

Sorry for my english.