How to run Jasmine tests on Node.js from command line

前端 未结 4 1659
梦毁少年i
梦毁少年i 2020-12-14 05:40

How do I run Jasmine tests on Node.js from command line? I have installed jasmine-node via npm and written some tests. I want to run tests inside the spec direc

4条回答
  •  庸人自扰
    2020-12-14 06:10

    The easiest way is to run the command in your project root:

    $ npx humile

    It founds all your specs which name ends with .spec.js.

    If you think humile is fine for your project, just install it as dev dependency. It speeds up the command.

    $ npm install -D humile

提交回复
热议问题