gpt4 book ai didi

angular - Chrome 87.0.4280 (Windows 10.0.0) : Executed 0 of null (skipped 229) ERROR (34. 875 秒/0 秒)

转载 作者:行者123 更新时间:2023-12-04 15:11:50 25 4
gpt4 key购买 nike

我正在尝试使用 jasmine 3.2.0 和 karma 测试我的项目 angular 8.3.26,但它显示了这个错误:

Chrome 87.0.4280 (Windows 10.0.0) ERROR
DisconnectedClient disconnected from CONNECTED state (ping timeout)
Chrome 87.0.4280 (Windows 10.0.0): Executed 0 of null (skipped 229) ERROR (34.875 secs / 0 secs)
karma 配置文件
// 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: ['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')
],
client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
dir: require('path').join(__dirname, './coverage/my-pro'),
reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false,
restartOnFileChange: true,
captureTimeout: 60000, // it was already there
browserDisconnectTolerance : 1,
browserNoActivityTimeout: 60000,
browserDisconnectTimeout: 60000
});
};
我检查了 Stackoverflow 中的解决方案但问题没有解决,
你有解决这个问题的意见吗?

最佳答案

这是我的计算机资源的问题。
由于源 map 处于事件状态并且给我的计算机带来了很多负载。我使用以下命令禁用它来运行测试:

ng test --source-map=false
这也很重要。如果您的应用程序太大。要运行测试,在您编写测试的 .spec.ts 文件中,在 describe 之前使用 f 以仅关注此测试文件。
fdescribe('my-test', () => {....}

关于angular - Chrome 87.0.4280 (Windows 10.0.0) : Executed 0 of null (skipped 229) ERROR (34. 875 秒/0 秒),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65086776/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com