• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

scriptype / writ-cms / 27879403048

20 Jun 2026 06:01PM UTC coverage: 54.865% (-0.08%) from 54.94%
27879403048

push

github

scriptype
Fix theme state accumulating across runs

State was accumulating more paths on each build run, causing repeated
asset copying.

Also skip watcher event if theme folder is created - the only way to
bypass triggering twice (one for unlink one for addDir).

648 of 1182 branches covered (54.82%)

Branch coverage included in aggregate %.

6 of 12 new or added lines in 4 files covered. (50.0%)

10 existing lines in 2 files now uncovered.

2239 of 4080 relevant lines covered (54.88%)

1584.04 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/cli/flag.js
1
class Flag {
2
  static isFlag(value) {
UNCOV
3
    return value.startsWith('--') || value.startsWith('-')
×
4
  }
5

6
  static isNotFlag(value) {
UNCOV
7
    return !Flag.isFlag(value)
×
8
  }
9

10
  constructor(full, shorthand) {
UNCOV
11
    this.full = full
×
UNCOV
12
    this.shorthand = shorthand
×
UNCOV
13
    return this
×
14
  }
15

16
  test(value) {
UNCOV
17
    if (Array.isArray(value)) {
×
UNCOV
18
      return !!value.find(v => v === `--${this.full}` || v === `-${this.shorthand}`)
×
19
    }
UNCOV
20
    return value === `--${this.full}` || value === `-${this.shorthand}`
×
21
  }
22
}
23

UNCOV
24
module.exports = Flag
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc