/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/scenes/karma.conf.js
47 строк
2 KB
Kristiyan Kostadinov
build: update to jasmine 6 (#32694)
29 янв 2026, 10:34
Не верифицирован
29 янв 2026, 10:34
d67ac1f
Код
Авторство
О чём код?
// Karma configuration file, see link for more information // https://karma-runner.github.io/0.13/config/configuration-file.html const {customLaunchers} = require('../karma-custom-launchers'); const path = require('path'); // TODO(bazel): drop non-bazel const isBazel = !!process.env['TEST_TARGET']; if (isBazel) { // Resolve CHROME_BIN and CHROMEDRIVER_BIN from relative paths to absolute paths within the // runfiles tree so that subprocesses spawned in a different working directory can still find them. process.env.CHROME_BIN = path.resolve(process.env.CHROME_BIN); process.env.CHROMEDRIVER_BIN = path.resolve(process.env.CHROMEDRIVER_BIN); } module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-firefox-launcher'), require('@angular-devkit/build-angular/plugins/karma'), ], client: { clearContext: false, // leave Jasmine Spec Runner output visible in browser }, coverageIstanbulReporter: { dir: require('path').join(__dirname, '../../coverage/scenes'), reports: ['html', 'lcovonly', 'text-summary'], fixWebpackSourcePaths: true, }, reporters: ['progress'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: [isBazel ? 'ChromeHeadlessNoSandbox' : 'ChromeHeadlessLocal'], singleRun: false, customLaunchers: customLaunchers, restartOnFileChange: true, }); if (process.env['TRAVIS']) { config.browsers = [isBazel ? 'ChromeHeadlessNoSandbox' : 'ChromeHeadlessCI', 'FirefoxHeadless']; } };