Compute correct document selectors when a project is initialized #135
Annotations
11 errors
tests/env/multi-config-content.test.js > multi-config with content config:
packages/tailwindcss-language-server/tests/env/multi-config-content.test.js#L69
AssertionError: expected { contents: { …(2) }, range: { …(2) } } to deeply equal { contents: { …(2) }, range: { …(2) } }
- Expected
+ Received
{
"contents": {
"language": "css",
"value": ".bg-foo {
--tw-bg-opacity: 1;
- background-color: rgb(0 0 255 / var(--tw-bg-opacity, 1)) /* #0000ff */;
+ background-color: rgb(255 0 0 / var(--tw-bg-opacity, 1)) /* #ff0000 */;
}",
},
"range": {
"end": {
"character": 18,
"line": 0,
},
"start": {
"character": 12,
"line": 0,
},
},
}
❯ Object.handle tests/env/multi-config-content.test.js:69:22
❯ runTest src/testing/index.ts:48:5
|
Run Tests - Node v18 / windows-latest
Process completed with exit code 1.
|
tests/completions/at-config.test.js > v4/dependencies > @config directory:
packages/tailwindcss-language-server/tests/completions/at-config.test.js#L151
AssertionError: expected null to deeply equal { isIncomplete: false, …(1) }
- Expected:
{
"isIncomplete": false,
"items": [
{
"data": Anything,
"kind": 17,
"label": "colors.js",
"textEdit": {
"newText": "colors.js",
"range": {
"end": {
"character": 19,
"line": 0,
},
"start": {
"character": 19,
"line": 0,
},
},
},
},
],
}
+ Received:
null
❯ tests/completions/at-config.test.js:151:20
|
tests/completions/at-config.test.js > v4/dependencies > @plugin:
packages/tailwindcss-language-server/tests/completions/at-config.test.js#L177
AssertionError: expected null to deeply equal { Object (isIncomplete, items) }
- Expected:
{
"isIncomplete": false,
"items": [
{
"command": {
"command": "editor.action.triggerSuggest",
"title": "",
},
"data": Anything,
"kind": 19,
"label": "sub-dir/",
"textEdit": {
"newText": "sub-dir/",
"range": {
"end": {
"character": 9,
"line": 0,
},
"start": {
"character": 9,
"line": 0,
},
},
},
},
{
"data": Anything,
"kind": 17,
"label": "tailwind.config.js",
"textEdit": {
"newText": "tailwind.config.js",
"range": {
"end": {
"character": 9,
"line": 0,
},
"start": {
"character": 9,
"line": 0,
},
},
},
},
],
}
+ Received:
null
❯ tests/completions/at-config.test.js:177:20
|
tests/completions/at-config.test.js > v4/dependencies > @plugin directory:
packages/tailwindcss-language-server/tests/completions/at-config.test.js#L213
AssertionError: expected null to deeply equal { isIncomplete: false, …(1) }
- Expected:
{
"isIncomplete": false,
"items": [
{
"data": Anything,
"kind": 17,
"label": "colors.js",
"textEdit": {
"newText": "colors.js",
"range": {
"end": {
"character": 19,
"line": 0,
},
"start": {
"character": 19,
"line": 0,
},
},
},
},
],
}
+ Received:
null
❯ tests/completions/at-config.test.js:213:20
|
tests/env/multi-config-content.test.js > multi-config with content config:
packages/tailwindcss-language-server/tests/env/multi-config-content.test.js#L69
AssertionError: expected { contents: { …(2) }, range: { …(2) } } to deeply equal { contents: { …(2) }, range: { …(2) } }
- Expected
+ Received
{
"contents": {
"language": "css",
"value": ".bg-foo {
--tw-bg-opacity: 1;
- background-color: rgb(0 0 255 / var(--tw-bg-opacity, 1)) /* #0000ff */;
+ background-color: rgb(255 0 0 / var(--tw-bg-opacity, 1)) /* #ff0000 */;
}",
},
"range": {
"end": {
"character": 18,
"line": 0,
},
"start": {
"character": 12,
"line": 0,
},
},
}
❯ Object.handle tests/env/multi-config-content.test.js:69:22
❯ runTest src/testing/index.ts:48:5
|
Run Tests - Node v24 / windows-latest
Process completed with exit code 1.
|
tests/env/multi-config-content.test.js > multi-config with content config:
packages/tailwindcss-language-server/tests/env/multi-config-content.test.js#L69
AssertionError: expected { contents: { …(2) }, range: { …(2) } } to deeply equal { contents: { …(2) }, range: { …(2) } }
- Expected
+ Received
{
"contents": {
"language": "css",
"value": ".bg-foo {
--tw-bg-opacity: 1;
- background-color: rgb(0 0 255 / var(--tw-bg-opacity, 1)) /* #0000ff */;
+ background-color: rgb(255 0 0 / var(--tw-bg-opacity, 1)) /* #ff0000 */;
}",
},
"range": {
"end": {
"character": 18,
"line": 0,
},
"start": {
"character": 12,
"line": 0,
},
},
}
❯ Object.handle tests/env/multi-config-content.test.js:69:22
❯ runTest src/testing/index.ts:48:5
|
Run Tests - Node v20 / windows-latest
Process completed with exit code 1.
|
tests/env/multi-config-content.test.js > multi-config with content config:
packages/tailwindcss-language-server/tests/env/multi-config-content.test.js#L69
AssertionError: expected { contents: { …(2) }, range: { …(2) } } to deeply equal { contents: { …(2) }, range: { …(2) } }
- Expected
+ Received
{
"contents": {
"language": "css",
"value": ".bg-foo {
--tw-bg-opacity: 1;
- background-color: rgb(0 0 255 / var(--tw-bg-opacity, 1)) /* #0000ff */;
+ background-color: rgb(255 0 0 / var(--tw-bg-opacity, 1)) /* #ff0000 */;
}",
},
"range": {
"end": {
"character": 18,
"line": 0,
},
"start": {
"character": 12,
"line": 0,
},
},
}
❯ Object.handle tests/env/multi-config-content.test.js:69:22
❯ runTest src/testing/index.ts:48:5
|
Run Tests - Node v22 / windows-latest
Process completed with exit code 1.
|