WebPageReplay: Deep merge configuration and skip camel case. (#4242)

The camel case is evil since it makes some metrcis becoming
arrays.
This commit is contained in:
Peter Hedenskog 2024-07-29 20:45:48 +02:00 committed by GitHub
parent 5b206c11fc
commit 0ebdee2a5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ let config;
try {
config = configPath ? JSON.parse(readFileSync(configPath)) : {};
} catch (e) {
if (e instanceof SyntaxError) {
/* eslint no-console: off */
@ -150,6 +151,7 @@ async function runBrowsertime() {
' to increase the level of detail.',
type: 'count'
})
.parserConfiguration({ 'camel-case-expansion': false, 'deep-merge-config': true })
.config(config);
const defaultConfig = {