igniteui-angular-sovn
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
86 lines (84 loc) • 2.69 kB
JavaScript
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: "",
frameworks: [
"parallel",
"jasmine",
"jasmine-spec-tags",
"@angular-devkit/build-angular",
],
files: [
{
pattern: "../../node_modules/hammerjs/hammer.min.js",
watched: false,
},
{
pattern: "../../node_modules/hammer-simulator/index.js",
watched: false,
},
{ pattern: "./test.css", watched: false },
{
pattern:
"../../dist/igniteui-angular-sovn/styles/igniteui-angular-sovn.css",
watched: false,
},
],
plugins: [
require("karma-parallel"),
require("karma-jasmine"),
require("karma-coverage"),
require("karma-chrome-launcher"),
require("karma-jasmine-spec-tags"),
require("@angular-devkit/build-angular/plugins/karma"),
],
parallelOptions: {
executors: 2,
shardStrategy: "round-robin",
},
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
jasmine: {
random: false,
},
tagPrefix: "#",
tags: "grid",
skipTags: "perf",
},
preprocessors: {
"projects/igniteui-angular-sovn/**/*.js": ["coverage"],
},
coverageReporter: {
dir: require("path").join(__dirname, "../../coverage/grid"),
reporters: [
// reporters not supporting the `file` property
{ type: "html" },
{ type: "json" },
{ type: "lcovonly" },
],
},
reporters: ["progress", "coverage"],
specReporter: {
suppressSkipped: true,
suppressErrorSummary: false,
suppressFailed: false,
suppressPassed: false,
showSpecTiming: false,
failFast: false,
},
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ["ChromeHeadlessNoSandbox"],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: "ChromeHeadless",
flags: ["--no-sandbox", "--disable-gpu"],
debug: false,
},
},
singleRun: false,
});
};