redhat-developer / redhat-developer/yaml-language-server

Rewrite tests to use local schemas

Open
#470 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
1.5k
Forks
352
Avg merge
2d 7h
Merged PRs (30d)
11

Description

Is your enhancement related to a problem? Please describe.

Some tests uses direct URI to schemas on schema store, and schemas may change which leads to test fail.

Describe the solution you would like

Use only local(static) schemas for tests.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with test/schemaValidation.test.ts around lines 40-43 and inspect how those tests reference schema-store URIs. Replace the test dependencies with local static schemas, then run the schema validation tests and confirm they no longer depend on schemas that can change remotely.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.