diff --git a/packages/api/src/__tests__/normalizeRequest.test.ts b/packages/api/src/__tests__/normalizeRequest.test.ts index 8833d9689506..c39e316eceda 100644 --- a/packages/api/src/__tests__/normalizeRequest.test.ts +++ b/packages/api/src/__tests__/normalizeRequest.test.ts @@ -1,6 +1,6 @@ import { Headers } from '@whatwg-node/fetch' import type { APIGatewayProxyEvent } from 'aws-lambda' -import { test, expect } from 'vitest' +import { test, expect, describe } from 'vitest' import { normalizeRequest } from '../transforms' @@ -55,7 +55,7 @@ export const createMockedLambdaEvent = ( } describe('Lambda Request', () => { - it('Normalizes an aws event with base64', async () => { + test('Normalizes an aws event with base64', async () => { const corsEventB64 = createMockedLambdaEvent( 'POST', Buffer.from(JSON.stringify({ bazinga: 'hello_world' }), 'utf8').toString( @@ -74,7 +74,7 @@ describe('Lambda Request', () => { }) }) - it('Handles CORS requests with and without b64 encoded', async () => { + test('Handles CORS requests with and without b64 encoded', async () => { const corsEventB64 = createMockedLambdaEvent('OPTIONS', undefined, true) expect(await normalizeRequest(corsEventB64)).toEqual({ @@ -100,7 +100,7 @@ describe('Lambda Request', () => { }) describe('Fetch API Request', () => { - it('Normalizes a fetch event', async () => { + test('Normalizes a fetch event', async () => { const fetchEvent = new Request( 'http://localhost:9210/graphql?whatsup=doc&its=bugs', { @@ -129,7 +129,7 @@ describe('Fetch API Request', () => { expect(partial.headers.get('content-type')).toEqual('application/json') }) - it('Handles an empty body', async () => { + test('Handles an empty body', async () => { const headers = { 'content-type': 'application/json', 'x-custom-header': 'bazinga',