d
31 10 2016 15:03:00.763:DEBUG [plugin]: Loading plugin D:\Projects\TaiJi\Code\web-check-box\node_modules/karma-firefox-launcher.
31 10 2016 15:03:00.767:DEBUG [plugin]: Loading plugin D:\Projects\TaiJi\Code\web-check-box\node_modules/karma-jasmine.
31 10 2016 15:03:00.770:DEBUG [plugin]: Loading plugin D:\Projects\TaiJi\Code\web-check-box\node_modules/karma-junit-reporter.
31 10 2016 15:03:00.800:DEBUG [plugin]: Loading plugin D:\Projects\TaiJi\Code\web-check-box\node_modules/karma-phantomjs-launcher.
31 10 2016 15:03:00.808:DEBUG [plugin]: Loading plugin D:\Projects\TaiJi\Code\web-check-box\node_modules/karma-teamcity-reporter.
31 10 2016 15:03:00.810:DEBUG [plugin]: Loading plugin D:\Projects\TaiJi\Code\web-check-box\node_modules/karma-threshold-reporter.
31 10 2016 15:03:00.943:DEBUG [plugin]: Loading plugin D:\Projects\TaiJi\Code\web-check-box\node_modules/karma-typescript.
31 10 2016 15:03:01.256:DEBUG [framework.karma-typescript]: Fallback to default compiler options: { emitDecoratorMetadata: true,
experimentalDecorators: true,
jsx: 'react',
module: 'commonjs',
sourceMap: true,
target: 'ES5' }
31 10 2016 15:03:01.261:INFO [compiler.karma-typescript]: Compiling project using Typescript 2.0.6
31 10 2016 15:03:01.274:DEBUG [web-server]: Instantiating middleware
31 10 2016 15:03:01.286:DEBUG [reporter]: Trying to load reporter: karma-typescript
31 10 2016 15:03:01.288:DEBUG [reporter]: Trying to load color-version of reporter: karma-typescript (karma-typescript_color)
31 10 2016 15:03:01.289:DEBUG [reporter]: Couldn't load color-version.
31 10 2016 15:03:01.310:DEBUG [preprocessor.karma-typescript]: Processing "D:/Projects/TaiJi/Code/web-check-box/src/check-box.module.ts".
31 10 2016 15:03:01.312:DEBUG [preprocessor.karma-typescript]: Processing "D:/Projects/TaiJi/Code/web-check-box/src/check-box.component.ts".
31 10 2016 15:03:01.312:DEBUG [preprocessor.karma-typescript]: Processing "D:/Projects/TaiJi/Code/web-check-box/src/check-box.controller.ts".
31 10 2016 15:03:01.313:DEBUG [preprocessor.karma-typescript]: Processing "D:/Projects/TaiJi/Code/web-check-box/src/core.ts".
31 10 2016 15:03:01.315:DEBUG [preprocessor.karma-typescript]: Processing "D:/Projects/TaiJi/Code/web-check-box/src/test/core.spec.ts".
31 10 2016 15:03:01.823:DEBUG [compiler.karma-typescript]: Reading: D:/Projects/TaiJi/Code/web-check-box/node_modules/@types/angular/index.d.ts
31 10 2016 15:03:01.829:DEBUG [compiler.karma-typescript]: Reading: D:/Projects/TaiJi/Code/web-check-box/node_modules/@types/jquery/index.d.ts
31 10 2016 15:03:01.838:DEBUG [compiler.karma-typescript]: Reading: D:/Projects/TaiJi/Code/web-check-box/node_modules/@types/es6-shim/index.d.ts
31 10 2016 15:03:01.840:DEBUG [compiler.karma-typescript]: Reading: D:/Projects/TaiJi/Code/web-check-box/node_modules/@types/jasmine/index.d.ts
31 10 2016 15:03:01.843:DEBUG [compiler.karma-typescript]: Reading: D:/Projects/TaiJi/Code/web-check-box/node_modules/@types/node/index.d.ts
31 10 2016 15:03:01.892:DEBUG [compiler.karma-typescript]: Reading: D:/Projects/TaiJi/Code/web-check-box/node_modules/@types/q/index.d.ts
31 10 2016 15:03:01.894:DEBUG [compiler.karma-typescript]: Reading: D:/Projects/TaiJi/Code/web-check-box/node_modules/@types/selenium-webdriver/index.d.ts
31 10 2016 15:03:01.908:DEBUG [compiler.karma-typescript]: Reading: D:/Projects/TaiJi/Code/web-check-box/node_modules/typescript/lib/lib.d.ts
31 10 2016 15:03:02.992:INFO [compiler.karma-typescript]: Compiled 0 files in 1176 ms.
[15:03:02] 'test' errored after 2.44 s
[15:03:02] Error: No source found for D:/Projects/TaiJi/Code/web-check-box/src/check-box.module.ts!
Is there a mismatch between the Typescript compiler options and the Karma config?
at D:\Projects\TaiJi\Code\web-check-box\node_modules\karma-typescript\lib\compiler.js:72:23
at Array.forEach (native)
at D:\Projects\TaiJi\Code\web-check-box\node_modules\karma-typescript\lib\compiler.js:66:19
As i can understand, compiler do not perform compilation for files. There is my karma.conf.js
module.exports = function(config) {
/*https://karma-runner.github.io/1.0/config/configuration-file.html*/
var buildConfig = require('./build.config.js');
config.set({
basePath: buildConfig.component_dir,
files: [
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'src/**/*.ts',
],
logLevel: config.LOG_DEBUG,
reporters: ['progress','karma-typescript'],
frameworks: ['jasmine', 'karma-typescript'],
preprocessors: {
'**/*.ts' : ['karma-typescript'],
},
karmaTypescriptConfig: {
reports: {
'html' :'coverage',
'text-summary': ''
},
compilerOptions: {
emitDecoratorMetadata: true,
experimentalDecorators: true,
jsx: "react",
noImplicitAny: true,
module: "commonjs",
sourceMap: true,
target: "ES5",
},
excludeFromCoverage: /\.(d|spec|test)\.ts/
},
browserNoActivityTimeout: 40000,
port: 9200,
runnerPort: 9300,
urlRoot: '/',
singleRun: true,
autoWatch: false,
browsers: [
'PhantomJS'
]
});
};
I am totally lost, trying to investigate it. It looks like tsc host requires some options. I am using
"karma-typescript": "git://github.com/monounity/karma-typescript.git#2.1"
in my devDependencies. What is going in a wrong way here?