Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.cache
.DS_Store
*.swp
.npm-packages
Expand Down
9 changes: 9 additions & 0 deletions .puppeteerrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const { join } = require('path')

/**
* @type {import("puppeteer").Configuration}
*/
module.exports = {
// Changes the cache location for Puppeteer.
cacheDirectory: join(__dirname, '.cache', 'puppeteer'),
}
7 changes: 4 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var sourcePath = path.join(__dirname, './src')

if (!process.env.NODE_ENV) process.env.NODE_ENV = 'test'

process.env.CHROME_BIN = require('puppeteer').executablePath()
// process.env.CHROME_BIN = require('puppeteer').executablePath()

const fallback = {
path: false,
Expand Down Expand Up @@ -137,6 +137,7 @@ module.exports = function init(config) {
pattern: `${output.path}/**/*`,
watched: false,
included: false,
served: true,
},
],

Expand Down Expand Up @@ -196,8 +197,8 @@ module.exports = function init(config) {
args: config.dockered ? ['--dockered'] : [],
},

browserDisconnectTimeout: 60000,
browserNoActivityTimeout: 60000,
browserDisconnectTimeout: 160000, // default 2000
browserNoActivityTimeout: 160000, // default 30000

port: 9876,
colors: true,
Expand Down
Loading