2017-09-04 3 views
0

원 CI에서 실행되고 있지 된 테스트하지만 파일 내 창문 로컬 컴퓨터에서 잘 실행 오류를 karma start ./karma.conf.js ERROR [config]: Error in config file! Unexpected token =]AngularCLI 카르마 각도 스크립트 다음 내가 사용 카르마 테스트를 실행하고

을 얻을하지만 난의 Bitbucket에 넣어 때 오류를 제공하고 실행 서클 CI 사용 (연속 통합)

karma.conf.js를 바꿔서 bitbucket에 넣으면 다음과 같은 경고 메시지가 나타납니다. C : \ Users \ Manu \ Documents \ manu \ programs \ web \ angle \ dw-ng2-app> git add --all

warning: LF will be replaced by CRLF in karma.conf.js. 
The file will have its original line endings in your working directory. 

카르마 파일은 문제가 내가 CircleCI 위해 만든 설정 파일에있을 것 같았다

// Karma configuration file, see link for more information 
// https://karma-runner.github.io/0.13/config/configuration-file.html 

module.exports = function (config) { 
    config.set({ 
    basePath: '', 
    frameworks: ['jasmine', '@angular/cli'], 
    plugins: [ 
     require('karma-jasmine'), 
     require('karma-chrome-launcher'), 
     require('karma-jasmine-html-reporter'), 
     require('karma-coverage-istanbul-reporter'), 
     require('@angular/cli/plugins/karma') 
    ], 
    client:{ 
     clearContext: false // leave Jasmine Spec Runner output visible in browser 
    }, 
    coverageIstanbulReporter: { 
     reports: [ 'html', 'lcovonly' ], 
     fixWebpackSourcePaths: true 
    }, 
    angularCli: { 
     environment: 'dev' 
    }, 
    reporters: ['progress', 'kjhtml'], 
    port: 9876, 
    colors: true, 
    logLevel: config.LOG_INFO, 
    autoWatch: true, 
    browsers: ['Chrome'], 
    singleRun: false 
    }); 
}; 

답변

관련 문제