import { test, expect } from 'vitest' import { withFixture } from '../common' withFixture('basic', (c) => { async function testHover(name, { text, lang, position, expected, expectedRange, settings }) { test.concurrent(name, async () => { let textDocument = await c.openDocument({ text, lang, settings }) let res = await c.sendRequest('textDocument/hover', { textDocument, position, }) expect(res).toEqual( expected ? { contents: { language: 'css', value: expected, }, range: expectedRange, } : expected ) }) } testHover('disabled', { text: '