@@ -47,6 +47,12 @@ const overrides = {
47
47
testIgnore : process . env . TEST_IGNORE ,
48
48
} ;
49
49
50
+ // Values that are arrays are merged at the very end (see arrMerger()), but primitives are not.
51
+ // Allow the user to set a single reporter like so: `reporter: 'list'`.
52
+ if ( userConfig . reporter && ! ( userConfig . reporter instanceof Array ) ) {
53
+ overrides . reporter . push ( [ userConfig . reporter ] ) ;
54
+ }
55
+
50
56
if ( process . env . BROWSER_NAME !== 'chrome' ) {
51
57
// chromium, firefox and webkit come pre-packaged with playwright.
52
58
// So we can just pass those browser values to playwright and
@@ -63,12 +69,12 @@ if ('HTTP_PROXY' in process.env && process.env.HTTP_PROXY !== '') {
63
69
server : process . env . HTTP_PROXY ,
64
70
} ;
65
71
66
- overrides . use . contextOptions = { proxy, ignoreHTTPSErrors : true } ;
72
+ overrides . use . contextOptions = { proxy, ignoreHTTPSErrors : true } ;
67
73
// Need to set the browser launch option as well, it is a hard requirement when testing chromium + windows.
68
- overrides . use . launchOptions = { proxy, ignoreHTTPSErrors : true } ;
74
+ overrides . use . launchOptions = { proxy, ignoreHTTPSErrors : true } ;
69
75
}
70
76
71
- function arrMerger ( objValue , srcValue ) {
77
+ function arrMerger ( objValue , srcValue ) {
72
78
if ( _ . isArray ( objValue ) ) {
73
79
return objValue . concat ( srcValue ) ;
74
80
}
0 commit comments