Skip to content

Commit

Permalink
Karma is real?
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedHamouGisaia committed Dec 20, 2024
1 parent 5bf9391 commit 0d8bef2
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 267 deletions.
8 changes: 4 additions & 4 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"options": {
"main": "projects/arlas-components/src/test.ts",
"tsConfig": "projects/arlas-components/tsconfig.spec.json",
"karmaConfig": "projects/arlas-components/karma.conf.js",
"karmaConfig": "./karma.conf.js",
"styles": [
"src/styles.css",
"node_modules/iv-viewer/dist/iv-viewer.css"
Expand Down Expand Up @@ -201,7 +201,7 @@
"options": {
"main": "projects/arlas-mapbox/src/test.ts",
"tsConfig": "projects/arlas-mapbox/tsconfig.spec.json",
"karmaConfig": "projects/arlas-mapbox/karma.conf.js"
"karmaConfig": "./karma.conf.js"
}
},
"lint": {
Expand Down Expand Up @@ -243,7 +243,7 @@
"options": {
"main": "projects/arlas-maplibre/src/test.ts",
"tsConfig": "projects/arlas-maplibre/tsconfig.spec.json",
"karmaConfig": "projects/arlas-maplibre/karma.conf.js"
"karmaConfig": "./karma.conf.js"
}
},
"lint": {
Expand Down Expand Up @@ -285,7 +285,7 @@
"options": {
"main": "projects/arlas-map/src/test.ts",
"tsConfig": "projects/arlas-map/tsconfig.spec.json",
"karmaConfig": "projects/arlas-map/karma.conf.js"
"karmaConfig": "./karma.conf.js"
}
},
"lint": {
Expand Down
22 changes: 14 additions & 8 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,15 @@ module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
plugins,
client:{
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
fixWebpackSourcePaths: true
},
webpack: { node: { fs: 'empty', } },

reporters: ['progress', 'kjhtml'],
port: 9876,
Expand All @@ -27,6 +22,17 @@ module.exports = function (config) {
autoWatch: true,
browsers: ['ChromeHeadless'],
singleRun: true,
webpack: { node: { fs: 'empty', } }
});
};

const plugins = [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
]




63 changes: 0 additions & 63 deletions projects/arlas-components/karma.conf.js

This file was deleted.

63 changes: 0 additions & 63 deletions projects/arlas-map/karma.conf.js

This file was deleted.

64 changes: 0 additions & 64 deletions projects/arlas-mapbox/karma.conf.js

This file was deleted.

65 changes: 0 additions & 65 deletions projects/arlas-maplibre/karma.conf.js

This file was deleted.

0 comments on commit 0d8bef2

Please sign in to comment.