🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@cfware/fastify-test-helper-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cfware/fastify-test-helper-cli

CLI command to start a server using @cfware/fastify-test-helper

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

@cfware/fastify-test-helper-cli

Travis CI Greenkeeper badge NPM Version NPM Downloads MIT

CLI command to start a stand-alone server using @cfware/fastify-test-helper

Install @cfware/fastify-test-helper-cli

This module requires node.js 12 or above.

npm i -D @cfware/fastify-test-helper
npm i -g @cfware/fastify-test-helper-cli

Usage

Just run cfware-fastify-test-helper from inside your project. This will pull options from the default export of ./fastify-test-helper.config.js found relative to your project directory.

You can provide an alternative options file cfware-fastify-test-helper /path/to/options.js. This will find the directory of the project which contains your options file.

In all cases a process.chdir is performed so the server runs from the project directory.

The options file can be in ESM, CJS or JSON format. @cfware/fastify-test-helper will be imported from the project which includes the options file.

Running tests

Tests are provided by xo and ava.

npm install
npm test

FAQs

Package last updated on 31 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts