Socket
Socket
Sign inDemoInstall

serverless-unittest-boilerplate

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    serverless-unittest-boilerplate

Serverless plugin


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

serverless

Serverless UnitTest Boilerplate

Overview

This module is Serverless Framework plugin. Create UnitTest boilerplate in a Serverless Project. Generated .travis.yml and tests/all.js.

Install

Execute npm install in your Serverless project.

$ npm install serverless-unittest-boilerplate

Add the plugin to your s-project.json file

"plugins": [
  "serverless-unittest-boilerplate"
]

Add the scripts to pakage.json file

"scripts": {
    "test": "export NODE_PATH=`npm root -g` && mocha tests/all"
}

Install mocha and chai. Run command below;

$ npm install chai --save-dev
$ npm install mocha --save-dev

Usage

Run command below.

$ serverless test scaffold

Sample Screen

The screen is succeed to build in travis

Keywords

FAQs

Last updated on 13 Jun 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc