No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
7c8abf5
... +0 ...
4b61c92
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
71 | 71 | return create; |
|
72 | 72 | } |
|
73 | 73 | ||
74 | - | const wrapped = context => Object.fromEntries( |
|
75 | - | Object.entries(create(context)) |
|
76 | - | .map(([selector, listener]) => [selector, reportListenerProblems(listener, context)]), |
|
77 | - | ); |
|
74 | + | const wrapped = context => { |
|
75 | + | const listeners = create(context); |
|
76 | + | ||
77 | + | if (!listeners) { |
|
78 | + | return {}; |
|
79 | + | } |
|
80 | + | ||
81 | + | return Object.fromEntries( |
|
82 | + | Object.entries(listeners) |
|
83 | + | .map(([selector, listener]) => [selector, reportListenerProblems(listener, context)]), |
|
84 | + | ); |
|
85 | + | }; |
|
78 | 86 | ||
79 | 87 | wrappedFunctions.add(wrapped); |
|
80 | 88 |
Files | Coverage |
---|---|
all.js | 100.00% |
recommended.js | 100.00% |
Folder Totals (2 files) | 100.00% |
Project Totals (203 files) | 99.70% |
4b61c92
7c8abf5