()
| 6 | |
| 7 | test('works with other PostCSS plugins', () => { |
| 8 | let plugin = () => { |
| 9 | return { |
| 10 | AtRule: { |
| 11 | mixin: (atRule, { Declaration }) => { |
| 12 | atRule.replaceWith( |
| 13 | new Declaration({ prop: 'user-select', value: 'none' }) |
| 14 | ) |
| 15 | } |
| 16 | }, |
| 17 | postcssPlugin: 'test', |
| 18 | Rule(rule) { |
| 19 | rule.selector = 'b' |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | plugin.postcss = true |
| 24 | |
| 25 | let result = postcss([ |
no outgoing calls
no test coverage detected
searching dependent graphs…