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

riot / compiler / 9813678147

05 Jul 2024 09:13PM CUT coverage: 99.704%. Remained the same
9813678147

push

github

GianlucaGuarini
added: Support for nested css https://github.com/riot/riot/issues/3009

539 of 558 branches covered (96.59%)

6 of 6 new or added lines in 1 file covered. (100.0%)

3368 of 3378 relevant lines covered (99.7%)

38.53 hits per line

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

86.96
/src/utils/generate-javascript.js
1
import { parse as customParser } from 'recast/parsers/typescript.js'
1✔
2
import { print } from 'recast'
1✔
3
/**
1✔
4
 * Generate the javascript from an ast source
1✔
5
 * @param   {AST} ast - ast object
1✔
6
 * @param   {Object} options - printer options
1✔
7
 * @returns {Object} code + map
1✔
8
 */
1✔
9
export default function generateJavascript(ast, options) {
1✔
10
  return print(ast, {
168✔
11
    ...options,
168✔
12
    parser: {
168✔
13
      parse: (source, opts) =>
168✔
14
        customParser(source, {
×
15
          ...opts,
×
16
          ecmaVersion: 'latest',
×
17
        }),
168✔
18
    },
168✔
19
    tabWidth: 2,
168✔
20
    wrapColumn: 0,
168✔
21
    quote: 'single',
168✔
22
  })
168✔
23
}
168✔
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

© 2025 Coveralls, Inc