원클릭으로
lookml-language-server-tests
Overview of the folder structure and setup patterns for the LookML Language Server tests
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Overview of the folder structure and setup patterns for the LookML Language Server tests
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | LookML Language Server Tests |
| description | Overview of the folder structure and setup patterns for the LookML Language Server tests |
This skill describes the structure, patterns, and conventions used for the integration tests in the server/src/__tests__ directory of the lookml-language-server project.
The tests in server/src/__tests__ are organized by feature or LookML concept (e.g., dimension_group, extends_view, view_name).
A standard test suite directory typically contains:
index.test.ts: The main Jest test file containing the test definitions (describe, test, beforeAll, etc.).lkml/: A subdirectory containing mock LookML files (.model.lkml, .view.lkml, or .lkml) that represent the test cases for the enclosing test suite.Note: Some complex test suites (like includes) may feature nested subdirectories, each of which then follows this same pattern with its own index.test.ts and lkml/ folder.
Most test suites follow this setup and execution pattern:
WorkspaceModel, often using a mocked connection through the helper function createMockConnection() (imported from ../utils.ts or similar).lkml/ directory are loaded and parsed into the model using workspaceModel.parseFiles({ source: examplePath, reset: true }).DiagnosticsProvider is instantiated. The contents of the LookML file are read into a TextDocument (from vscode-languageserver-textdocument) and validated via diagnosticsProvider.validateDocument(document).expect assertions to verify:
workspaceModel.getView(), workspaceModel.getTableFields()).