Prevent test timeouts due to Chrome backgrounding (#8360)

* Prevent test timeouts due to Chrome backgrounding

* Add karma.conf.js to test filters
This commit is contained in:
Jukka Kurkela 2021-02-01 14:50:18 +02:00 committed by GitHub
parent ae0c8dd457
commit 6e555e2285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -36,6 +36,7 @@ jobs:
- 'src/**'
test:
- 'test/**'
- 'karma.conf.js'
types:
- 'types/**'
- name: Install

View File

@ -1,5 +1,3 @@
/* eslint-disable import/no-commonjs */
const commonjs = require('@rollup/plugin-commonjs');
const istanbul = require('rollup-plugin-istanbul');
const json = require('@rollup/plugin-json');
@ -49,7 +47,10 @@ module.exports = function(karma) {
chrome: {
base: 'Chrome',
flags: [
'--disable-accelerated-2d-canvas'
'--disable-accelerated-2d-canvas',
'--disable-background-timer-throttling',
'--disable-backgrounding-occluded-windows',
'--disable-renderer-backgrounding'
]
},
firefox: {