FaasJS
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文

Documents / @faasjs/test

@faasjs/test

FaasJS's testing module.

License: MITNPM Version

Install

npm install @faasjs/test

Usage

import { test } from '@faasjs/test'
import Func from '../demo.func.ts'

const func = test(Func)

expect(await func.handler()).toEqual('Hello, world')

Functions

  • nameFunc
  • test
  • useFunc
  • usePlugin

Classes

  • Func
  • FuncWarper

Type Aliases

  • Config
  • ExportedHandler
  • FuncConfig
  • FuncEventType
  • FuncReturnType
  • Handler
  • InvokeData
  • LifeCycleKey
  • MountData
  • Next
  • Plugin
  • UseifyPlugin