Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 516 Bytes

test.md

File metadata and controls

25 lines (14 loc) · 516 Bytes

@faasjs/test / test

Function: test()

test(initBy): FuncWarper

A simple way to warp a FaasJS function.

Parameters

initBy: string | Func<any, any, any>

{string | Func} Full file path or a FaasJs function

import { test } from '@faasjs/test'

const func = test(__dirname + '/../demo.func.ts')

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

Returns

FuncWarper