@athenna/http
Version:
The Athenna Http server. Built on top of fastify.
21 lines (20 loc) • 628 B
JavaScript
/**
* @athenna/http
*
* (c) João Lenon <lenon@athenna.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import { TestContext } from '@japa/runner/core';
import { TestRequest } from '#src/testing/plugins/request/TestRequest';
export * from '#src/testing/plugins/request/TestRequest';
export * from '#src/testing/plugins/request/TestResponse';
/**
* Request plugin registers the request macro to the test context.
*/
export function request() {
return function () {
TestContext.macro('request', new TestRequest());
};
}