Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
Fixes #253
Fixes #246
  • Loading branch information
coderbyheart committed Nov 30, 2023
1 parent ea0f75e commit e061399
Show file tree
Hide file tree
Showing 7 changed files with 476 additions and 34 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)
[![Mergify Status](https://img.shields.io/endpoint.svg?url=https://api.mergify.com/v1/badges/NordicSemiconductor/cloud-bdd-markdown-e2e-example-aws-js)](https://mergify.io)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![@commitlint/config-conventional](https://img.shields.io/badge/%40commitlint-config--conventional-brightgreen)](https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier/)
[![ESLint: TypeScript](https://img.shields.io/badge/ESLint-TypeScript-blue.svg)](https://github.com/typescript-eslint/typescript-eslint)

Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = { extends: ["@commitlint/config-angular"] };
module.exports = { extends: ["@commitlint/config-conventional"] };
8 changes: 4 additions & 4 deletions features/steps/rest-steps.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
codeBlockOrThrow,
StepRunner,
groupMatcher,
regExpMatchedStep,
} from '@nordicsemiconductor/bdd-markdown'
import assert from 'assert/strict'
import fetch, { Response } from 'node-fetch'
Expand All @@ -12,7 +12,7 @@ export const steps = (): StepRunner<World>[] => {
let baseUrl: URL | undefined = undefined
let res: Response | undefined = undefined
return [
groupMatcher(
regExpMatchedStep(
{
regExp: /^the endpoint is `(?<endpoint>[^`]+)`$/,
schema: Type.Object({ endpoint: Type.String() }),
Expand All @@ -21,7 +21,7 @@ export const steps = (): StepRunner<World>[] => {
baseUrl = new URL(endpoint)
},
),
groupMatcher(
regExpMatchedStep(
{
regExp: /^I (?<method>POST) to `(?<resource>[^`]+)` with this JSON$/,
schema: Type.Object({ method: Type.String(), resource: Type.String() }),
Expand All @@ -41,7 +41,7 @@ export const steps = (): StepRunner<World>[] => {
progress(`x-amzn-trace-id: ${res.headers.get('x-amzn-trace-id')}`)
},
),
groupMatcher(
regExpMatchedStep(
{
regExp: /^the response status code should be (?<code>[0-9]+)$/,
schema: Type.Object({ code: Type.Integer() }),
Expand Down
3 changes: 2 additions & 1 deletion features/steps/webhook-receiver.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
DeleteMessageCommand,
QueueAttributeName,
ReceiveMessageCommand,
SQSClient,
} from '@aws-sdk/client-sqs'
Expand Down Expand Up @@ -41,7 +42,7 @@ export class WebhookReceiver {
QueueUrl: this.queueUrl,
MaxNumberOfMessages: 1,
MessageAttributeNames: ['All'],
AttributeNames: ['MessageGroupId'],
AttributeNames: ['MessageGroupId' as QueueAttributeName],
WaitTimeSeconds: 20,
}),
)
Expand Down
4 changes: 2 additions & 2 deletions features/steps/webhook-steps.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {
codeBlockOrThrow,
groupMatcher,
regExpMatchedStep,
StepRunner,
} from '@nordicsemiconductor/bdd-markdown'
import assert from 'assert/strict'
Expand All @@ -20,7 +20,7 @@ export const steps = (): StepRunner<World>[] => {
await r.clearQueue()
},
},
groupMatcher(
regExpMatchedStep(
{
regExp:
/^the Webhook Receiver `(?<MessageGroupId>[^"]+)` should be called$/,
Expand Down
Loading

0 comments on commit e061399

Please sign in to comment.