一键导入
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()).