Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuineng committed Jan 29, 2024
1 parent e579a8d commit ce5f1e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/helper/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ module.exports = wd => {
wd.addPromiseChainMethod('coverage', function(opts = {}) {
let {
coverageIgnore = program.coverageIgnore,
keys,
keys = [],
} = opts;
const tempDir = path.join(cwd, 'coverage', '.temp');
_.mkdir(tempDir);
return this.execute('return { allKeys: Object.keys(window.__coverage__) }')
.then(async res => {
const { allKeys } = res;
if (!keys) {
if (!keys.length && allKeys) {
keys = allKeys;
}
if (coverageIgnore) {
Expand Down

0 comments on commit ce5f1e5

Please sign in to comment.