Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

260
Visualizações
Separate unit tests and integration tests with Hardhat and NPM

I am trying to setup in my package.json two commands for starting my unit tests and integration tests, but I am having difficulties in specifying a testset (location) for these two types of testing.

In my package.json in scripts section I have created two commands for unit tests and integration tests:

…

….
“unit”: “hardhat test test/unit/**/*.test.ts”,
 “integration”: “hardhat test test/integration/**/*.inttest.ts”
….

But hardhat test task does not seem to handle the wildcard specification well. It only executes test files which are directly within the directory integration (for integration test case). It is not (recursively) executing test files in subfolders (descendants) of the integration directory.

So, I suspect that this limitation is in the implementation of the test task of Hardhat. Does any one knows how to specify a command which executes all test files in all descendant folders of unit directory or integration directory?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda