@codeceptjs-bootstraps/core
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@codeceptjs-bootstraps/core Made in Ukraine

npm version

This package contains core functionality for managing the CodeceptJS bootstraps.

Installation

npm add -D @codeceptjs-bootstraps/core
yarn add -D @codeceptjs-bootstraps/core

createPipeline

import { createPipeline } from '@codeceptjs-bootstraps/core'

const firstBootstrap = {
  bootstrap: () => {
    console.log('bootstrap 1')
  },
  teardown: async () => {
    console.log('teardown 1')
  },
}

const secondBootstrap = {
  bootstrap: async () => {
    console.log('bootstrap 2')
  },
  bootstrapAll: () => {
    console.log('bootstrapAll 2')
  },
}

const pipeline = createPipeline([
  firstBootstrap,
  secondBootstrap,
])

exports.config = {
  ...pipeline
}
/*
Expected output:
1) bootstrapAll 2
2) bootstrap 1
3) bootstrap 2
4) teardown 1
*/

/@codeceptjs-bootstraps/core/

    Package Sidebar

    Install

    npm i @codeceptjs-bootstraps/core

    Weekly Downloads

    3

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    7.06 kB

    Total Files

    14

    Last publish

    Collaborators

    • reutenkoivan