NativeScript / NativeScript/nativescript-cli
`tns test init --framework qunit` fails on windows
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- JavaScript
- Estrelas
- 1.1k
- Forks
- 204
- Merge médio
- 1d 9h
- PRs com merge (30d)
- 8
Descrição
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: latest
- Cross-platform modules: latest
- Android Runtime: latest
- iOS Runtime: latest
- Plugin(s): No
Describe the bug
tns test init --framework qunit fails on windows
To Reproduce
tns create TestApp
cd TestApp
tns test init --framework qunit
=> Fails with non zero exit code.
Expected behavior
tns test init to work properly.
Additional context
Looks to be caused by the fact that there is no qunit@2.0.0 version on npm and in karma-qunit package.json we have:
"peerDependencies": {
"qunit": "^2.0.0"
},
Workaround
Execute npm i qunit@2 --save-dev before tns test init.
Note that tns test init will still fail, but after that tns test will be fine.
Guia de contribuição
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.
Direção de pesquisa
Comece executando a reprodução relatada no Windows com tns create TestApp e, em seguida, tns test init --framework qunit; inspecione como a CLI resolve e instala as dependências QUnit e karma-qunit. Os detalhes da solução alternativa e das peer dependencies indicam que o foco está na configuração das dependências. Está concluído quando a inicialização termina com sucesso sem a instalação manual de qunit@2 e o comando de teste subsequente funciona.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- javascript
- Domínio
- cli, testing-qa
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 45/100