oracle-gaps: refuse at baseline when more than one Vitest copy is loaded
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- javascript
- Domínio
- testing-qa
Direção de pesquisa
Start with the baseline and harness code that runs the oracle file and the driver's use of vi.advanceTimersByTime and vi.useFakeTimers, and find where the resolved vitest path is available. The issue asks for a check comparing the vitest path from the harness, the framework, and the test file, which means the baseline must refuse with a fix line when they differ. Done means a test reproduces two loaded vitest copies and the run stops with the setup error instead of recording a law violation.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Reported from an adopter's first session, at c58b0c2. Not yet reproduced here.
Problem. pnpm installed [email protected] twice, once for each @types/node peer. The runner used one copy, while @tanstack/oracles and the oracle file shared the other. So useOracleClock's vi.useFakeTimers and the driver's vi.advanceTimersByTime ran on different copies, and the run failed with "A function to advance timers was called but the timers APIs are not mocked". The driver records thrown errors as observations, so the baseline reported the failure as a law violation (visible order, at checkpoint error). It took a replay to see that the setup was the cause.
Proposal. The baseline should refuse, with a fix line, when more than one vitest instance is loaded. One way to check: compare the resolved vitest path from the harness, from the framework, and from the test file. This is a harness failure, so it should stop the run and not be charged to a mutant (cleanup plan, Phase 2 A2).
This issue was written by Isaac.
- Linguagem predominante
- JavaScript
- Estrelas
- 5
- Forks
- 1
- Merge médio
- 8h 31min
- PRs com merge (30d)
- 60
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TanStack/oracles
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
Mantenedores costumam responder em até 1 dia
Todas as issues de TanStack/oracles
Issues semelhantes
-
accepted enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
Bug: Unused media visibility check and missing useMemo dependencies cause stale/invalid actions in MessageToolbox.jsTalvez já em andamento @yashsarvaiya45 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
RocketChat/EmbeddedChat#1437 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia