MCPcopy
hub / github.com/postcss/postcss / warner

Function warner

test/node.test.ts:86–88  ·  view source on GitHub ↗
(css: Root, result: Result)

Source from the content-addressed store, hash-verified

84
85test('warn() accepts options', () => {
86 let warner = (css: Root, result: Result): void => {
87 css.first?.warn(result, 'FIRST!', { index: 1 })
88 }
89
90 let result = postcss([warner]).process('a{}')
91 is(result.warnings().length, 1)

Callers

nothing calls this directly

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…