// @vitest-environment jsdom
import { afterEach, describe, expect, it } from 'vitest';
import { resolveScope } from '../scope';
afterEach(() => {
document.body.innerHTML = '';
});
/**
* jsdom does not lay out elements, so geometry-based tiers (3 dialog
* sizing, heuristic scoring) can only be smoke-tested. These tests
* cover the structural tier selection — which is the part that matters
* for ladder ordering.
*/
describe('resolveScope — tier ladder', () => {
it('honors an explicit target selector first', () => {
document.body.innerHTML = `content