Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prescript

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prescript

Object-oriented acceptance test tool

  • 0.1.1
  • npm
  • Socket score

Version published
Weekly downloads
277
decreased by-37.89%
Maintainers
1
Weekly downloads
 
Created
Source

prescript - an acceptance test runner CircleCI

prescript is a library for creating acceptance tests.

It comes with primitives to help you build highly-fluent DSLs for your test.

The tests are separated into two phases:

  • The prescription phase. It is the phase where the test script is prepared.
  • The runtime phase. Where tests gets actually run.

Work in progress…

API

step(name, () => { ... })

Defines a step. You can nest them.

cleanup(name, () => { ... })

Defines a cleanup step. It’s different from normal steps: they are always run even though previous steps failed.

action(async (state) => { ... })

Defines the step’s ‘runtime action.’

onFinish(() => { ... })

Defines code to run once the whole test finished loading. This is a good time to add any cleanup step.

FAQs

Package last updated on 19 Dec 2016

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc