Skip to content

Commit fbe1fe6

Browse files
feat : upgrade to angular 20
1 parent 3cdfb8b commit fbe1fe6

4 files changed

Lines changed: 14979 additions & 18081 deletions

File tree

frontend/karma.conf.js

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
1-
// Karma configuration file, see link for more information
2-
// https://karma-runner.github.io/1.0/config/configuration-file.html
3-
4-
module.exports = function (config) {
5-
config.set({
6-
basePath: '',
7-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
8-
plugins: [
9-
require('karma-jasmine'),
10-
require('karma-chrome-launcher'),
11-
require('karma-jasmine-html-reporter'),
12-
require('karma-coverage-istanbul-reporter'),
13-
require('@angular-devkit/build-angular/plugins/karma')
14-
],
15-
client: {
16-
clearContext: false // leave Jasmine Spec Runner output visible in browser
17-
},
18-
coverageIstanbulReporter: {
19-
dir: require('path').join(__dirname, './coverage/investment-profile'),
20-
reports: ['html', 'lcovonly', 'text-summary'],
21-
fixWebpackSourcePaths: true
22-
},
23-
reporters: ['progress', 'kjhtml'],
24-
port: 9876,
25-
colors: true,
26-
logLevel: config.LOG_INFO,
27-
autoWatch: true,
28-
browsers: ['Chrome'],
29-
singleRun: false,
30-
restartOnFileChange: true,
31-
customLaunchers: {
32-
ChromeHeadlessCustom: {
33-
base: 'ChromeHeadless',
34-
flags: ['--no-sandbox', '--disable-gpu']
35-
}
36-
}
37-
});
38-
};
1+
// Karma configuration file, see link for more information
2+
// https://karma-runner.github.io/1.0/config/configuration-file.html
3+
process.env.CHROME_BIN = require('puppeteer').executablePath();
4+
5+
module.exports = function (config) {
6+
config.set({
7+
basePath: '',
8+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
9+
plugins: [
10+
require('karma-jasmine'),
11+
require('karma-chrome-launcher'),
12+
require('karma-jasmine-html-reporter'),
13+
require('karma-coverage-istanbul-reporter'),
14+
require('@angular-devkit/build-angular/plugins/karma')
15+
],
16+
client: {
17+
clearContext: false // leave Jasmine Spec Runner output visible in browser
18+
},
19+
coverageIstanbulReporter: {
20+
dir: require('path').join(__dirname, './coverage/investment-profile'),
21+
reports: ['html', 'lcovonly', 'text-summary'],
22+
fixWebpackSourcePaths: true
23+
},
24+
reporters: ['progress', 'kjhtml'],
25+
port: 9876,
26+
colors: true,
27+
logLevel: config.LOG_INFO,
28+
autoWatch: true,
29+
browsers: ['Chrome'],
30+
singleRun: false,
31+
restartOnFileChange: true,
32+
customLaunchers: {
33+
ChromeHeadlessCustom: {
34+
base: 'ChromeHeadless',
35+
flags: ['--no-sandbox', '--disable-gpu']
36+
}
37+
}
38+
});
39+
};

0 commit comments

Comments
 (0)