@zoroaster/zarathustra is A serverless test runner.
yarn add -E @zoroaster/zarathustraThe package is available by importing its default function:
import zarathustra from '@zoroaster/zarathustra'Call this function to get the result you want.
Config: Options for the program.
| Name | Type | Description | Default |
|---|---|---|---|
| shouldRun | boolean | A boolean option. | true |
| text* | string | A text to return. | - |
/* yarn example/ */
import zarathustra from '@zoroaster/zarathustra'
(async () => {
const res = await zarathustra({
text: 'example',
})
console.log(res)
})()example
(c) Context Testing 2018