-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CYB-201] [UI][COMPONENT] Fixed Karma Unit tests.
* Fixed build action.
- Loading branch information
1 parent
51dedb0
commit 20f0f92
Showing
4 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...ain/parser-chains-config-service/frontend/parser-chains-client/src/karma.headless.conf.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright 2020 - 2022 Cloudera. All Rights Reserved. | ||
* | ||
* This file is licensed under the Apache License Version 2.0 (the "License"). You may not use this file | ||
* except in compliance with the License. You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, | ||
* either express or implied. Refer to the License for the specific permissions and | ||
* limitations governing your use of the file. | ||
*/ | ||
const path = require("path"); | ||
module.exports = function (config) { | ||
config.set({ | ||
basePath: '', | ||
frameworks: ['jasmine', '@angular-devkit/build-angular'], | ||
plugins: [ | ||
require('karma-jasmine'), | ||
require('karma-chrome-launcher'), | ||
require('karma-spec-reporter'), | ||
require('@angular-devkit/build-angular/plugins/karma') | ||
], | ||
client: { | ||
jasmine: { | ||
random: false | ||
} | ||
}, | ||
coverageIstanbulReporter: { | ||
dir: path.join(__dirname, '../coverage/enrichment'), | ||
reports: ['html', 'lcovonly', 'text-summary'], | ||
fixWebpackSourcePaths: true | ||
}, | ||
reporters: ['spec'], | ||
port: 9876, | ||
colors: true, | ||
logLevel: config.INFO, | ||
autoWatch: false, | ||
browsers: ['ChromeHeadless'], | ||
singleRun: true, | ||
restartOnFileChange: false | ||
}); | ||
}; |