|
|
@ -2,7 +2,6 @@ import {
|
|
|
|
postcssIsolateStyles,
|
|
|
|
postcssIsolateStyles,
|
|
|
|
splitSelectorPseudo
|
|
|
|
splitSelectorPseudo
|
|
|
|
} from 'node/postcss/isolateStyles'
|
|
|
|
} from 'node/postcss/isolateStyles'
|
|
|
|
import { describe, it, expect } from 'vitest'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// helper to run plugin transform on selector
|
|
|
|
// helper to run plugin transform on selector
|
|
|
|
function apply(
|
|
|
|
function apply(
|
|
|
@ -14,7 +13,7 @@ function apply(
|
|
|
|
root: { source: { input: { file: 'foo/base.css' } } }
|
|
|
|
root: { source: { input: { file: 'foo/base.css' } } }
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const rule = { selectors: [selector] }
|
|
|
|
const rule = { selectors: [selector] }
|
|
|
|
Rule(rule as any, { result: {} } as any)
|
|
|
|
Rule(rule, { result: {} })
|
|
|
|
return rule.selectors[0]
|
|
|
|
return rule.selectors[0]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|