import { test, expect } from 'vitest' import { withFixture } from '../common' withFixture('multi-config-content', (c) => { test.concurrent('multi-config with content config - 1', async () => { let textDocument = await c.openDocument({ text: '
', dir: 'one' }) let res = await c.sendRequest('textDocument/hover', { textDocument, position: { line: 0, character: 13 }, }) expect(res).toEqual({ contents: { language: 'css', value: '.bg-foo {\n --tw-bg-opacity: 1;\n background-color: rgb(255 0 0 / var(--tw-bg-opacity));\n}', }, range: { start: { line: 0, character: 12 }, end: { line: 0, character: 18 } }, }) }) test.concurrent('multi-config with content config - 2', async () => { let textDocument = await c.openDocument({ text: '
', dir: 'two' }) let res = await c.sendRequest('textDocument/hover', { textDocument, position: { line: 0, character: 13 }, }) expect(res).toEqual({ contents: { language: 'css', value: '.bg-foo {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 255 / var(--tw-bg-opacity));\n}', }, range: { start: { line: 0, character: 12 }, end: { line: 0, character: 18 } }, }) }) })