FaasJS's testing module.
npm install @faasjs/test
import { test } from '@faasjs/test'
import Func from '../demo.func.ts'
const func = test(Func)
expect(await func.handler()).toEqual('Hello, world')
FaasJS's testing module.
npm install @faasjs/test
import { test } from '@faasjs/test'
import Func from '../demo.func.ts'
const func = test(Func)
expect(await func.handler()).toEqual('Hello, world')
npm i @faasjs/test
256
6.4.3
MIT
12.8 kB
6