Skip to content

Commit b85fcd3

Browse files
songyumengCopilot
andcommitted
Update karma.conf.js fix ci 创建不了webgl
(cherry picked from commit 3f1a733) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 751159b commit b85fcd3

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎test/karma.conf.js‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,20 @@ module.exports = function (config) {
184184

185185
// enable / disable watching file and executing tests whenever any file changes
186186
autoWatch: true,
187-
187+
customLaunchers: {
188+
ChromeCI: {
189+
base: 'Chrome',
190+
flags: [
191+
'--use-gl=angle',
192+
'--use-angle=swiftshader',
193+
'--enable-unsafe-swiftshader',
194+
'--ignore-gpu-blocklist'
195+
]
196+
}
197+
},
188198
// start these browsers
189199
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
190-
browsers: ['Chrome'],
200+
browsers: ['ChromeCI'],
191201

192202
// Continuous Integration mode
193203
// if true, Karma captures browsers, runs the tests and exits

0 commit comments

Comments
 (0)