Skip to content

Compute correct document selectors when a project is initialized #134

Compute correct document selectors when a project is initialized

Compute correct document selectors when a project is initialized #134

Triggered via pull request May 9, 2025 23:28
Status Failure
Total duration 3m 51s
Artifacts

ci.yml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

38 errors
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
Run Tests - Node v22 / macos-latest
Process completed with exit code 1.
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
Run Tests - Node v18 / macos-latest
Process completed with exit code 1.
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
Run Tests - Node v20 / macos-latest
Process completed with exit code 1.
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
Run Tests - Node v24 / macos-latest
Process completed with exit code 1.
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
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/document-links/document-links.test.js > v4/basic > config: file does not exist: packages/tailwindcss-language-server/tests/document-links/document-links.test.js#L49
AssertionError: expected null to deeply equal [ { …(2) } ] - Expected: [ { "range": { "end": { "character": 27, "line": 0, }, "start": { "character": 8, "line": 0, }, }, "target": "file:///home/runner/work/tailwindcss-intellisense/tailwindcss-intellisense/packages/tailwindcss-language-server/tests/fixtures/v4/basic/does-not-exist.js", }, ] + Received: null ❯ tests/document-links/document-links.test.js:49:19
Run Tests - Node v24 / ubuntu-latest
Process completed with exit code 1.
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
tests/document-links/document-links.test.js > v4/basic > config: file does not exist: packages/tailwindcss-language-server/tests/document-links/document-links.test.js#L49
AssertionError: expected null to deeply equal [ { …(2) } ] - Expected: [ { "range": { "end": { "character": 27, "line": 0, }, "start": { "character": 8, "line": 0, }, }, "target": "file:///home/runner/work/tailwindcss-intellisense/tailwindcss-intellisense/packages/tailwindcss-language-server/tests/fixtures/v4/basic/does-not-exist.js", }, ] + Received: null ❯ tests/document-links/document-links.test.js:49:19
tests/document-links/document-links.test.js > v4/basic > plugin: file exists: packages/tailwindcss-language-server/tests/document-links/document-links.test.js#L49
AssertionError: expected null to deeply equal [ { …(2) } ] - Expected: [ { "range": { "end": { "character": 19, "line": 0, }, "start": { "character": 8, "line": 0, }, }, "target": "file:///home/runner/work/tailwindcss-intellisense/tailwindcss-intellisense/packages/tailwindcss-language-server/tests/fixtures/v4/basic/plugin.js", }, ] + Received: null ❯ tests/document-links/document-links.test.js:49:19
tests/document-links/document-links.test.js > v4/basic > plugin: file does not exist: packages/tailwindcss-language-server/tests/document-links/document-links.test.js#L49
AssertionError: expected null to deeply equal [ { …(2) } ] - Expected: [ { "range": { "end": { "character": 27, "line": 0, }, "start": { "character": 8, "line": 0, }, }, "target": "file:///home/runner/work/tailwindcss-intellisense/tailwindcss-intellisense/packages/tailwindcss-language-server/tests/fixtures/v4/basic/does-not-exist.js", }, ] + Received: null ❯ tests/document-links/document-links.test.js:49:19
tests/document-links/document-links.test.js > v4/basic > source: file exists: packages/tailwindcss-language-server/tests/document-links/document-links.test.js#L49
AssertionError: expected null to deeply equal [ { …(2) } ] - Expected: [ { "range": { "end": { "character": 20, "line": 0, }, "start": { "character": 8, "line": 0, }, }, "target": "file:///home/runner/work/tailwindcss-intellisense/tailwindcss-intellisense/packages/tailwindcss-language-server/tests/fixtures/v4/basic/index.html", }, ] + Received: null ❯ tests/document-links/document-links.test.js:49:19
Run Tests - Node v20 / ubuntu-latest
Process completed with exit code 1.
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
Run Tests - Node v22 / ubuntu-latest
Process completed with exit code 1.
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
Run Tests - Node v18 / ubuntu-latest
Process completed with exit code 1.
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
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/completions/at-config.test.js > v4/dependencies > @source: packages/tailwindcss-language-server/tests/completions/at-config.test.js#L239
AssertionError: expected null to deeply equal { Object (isIncomplete, items) } - Expected: { "isIncomplete": false, "items": [ { "data": Anything, "kind": 17, "label": "index.html", "textEdit": { "newText": "index.html", "range": { "end": { "character": 9, "line": 0, }, "start": { "character": 9, "line": 0, }, }, }, }, { "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:239: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 v22 / windows-latest
Process completed with exit code 1.
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
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.
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
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.
src/project-locator.test.ts > multi-config-content: packages/tailwindcss-language-server/src/project-locator.test.ts#L29
AssertionError: expected undefined to be defined ❯ src/project-locator.test.ts:29:23
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.