Skip to content

Commit e061399

Browse files
committed
fix: update dependencies
Fixes #253 Fixes #246
1 parent ea0f75e commit e061399

File tree

7 files changed

+476
-34
lines changed

7 files changed

+476
-34
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![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)
55
[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)
66
[![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)
7-
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
7+
[![@commitlint/config-conventional](https://img.shields.io/badge/%40commitlint-config--conventional-brightgreen)](https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional)
88
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier/)
99
[![ESLint: TypeScript](https://img.shields.io/badge/ESLint-TypeScript-blue.svg)](https://github.com/typescript-eslint/typescript-eslint)
1010

commitlint.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = { extends: ["@commitlint/config-angular"] };
1+
module.exports = { extends: ["@commitlint/config-conventional"] };

features/steps/rest-steps.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
codeBlockOrThrow,
33
StepRunner,
4-
groupMatcher,
4+
regExpMatchedStep,
55
} from '@nordicsemiconductor/bdd-markdown'
66
import assert from 'assert/strict'
77
import fetch, { Response } from 'node-fetch'
@@ -12,7 +12,7 @@ export const steps = (): StepRunner<World>[] => {
1212
let baseUrl: URL | undefined = undefined
1313
let res: Response | undefined = undefined
1414
return [
15-
groupMatcher(
15+
regExpMatchedStep(
1616
{
1717
regExp: /^the endpoint is `(?<endpoint>[^`]+)`$/,
1818
schema: Type.Object({ endpoint: Type.String() }),
@@ -21,7 +21,7 @@ export const steps = (): StepRunner<World>[] => {
2121
baseUrl = new URL(endpoint)
2222
},
2323
),
24-
groupMatcher(
24+
regExpMatchedStep(
2525
{
2626
regExp: /^I (?<method>POST) to `(?<resource>[^`]+)` with this JSON$/,
2727
schema: Type.Object({ method: Type.String(), resource: Type.String() }),
@@ -41,7 +41,7 @@ export const steps = (): StepRunner<World>[] => {
4141
progress(`x-amzn-trace-id: ${res.headers.get('x-amzn-trace-id')}`)
4242
},
4343
),
44-
groupMatcher(
44+
regExpMatchedStep(
4545
{
4646
regExp: /^the response status code should be (?<code>[0-9]+)$/,
4747
schema: Type.Object({ code: Type.Integer() }),

features/steps/webhook-receiver.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
DeleteMessageCommand,
3+
QueueAttributeName,
34
ReceiveMessageCommand,
45
SQSClient,
56
} from '@aws-sdk/client-sqs'
@@ -41,7 +42,7 @@ export class WebhookReceiver {
4142
QueueUrl: this.queueUrl,
4243
MaxNumberOfMessages: 1,
4344
MessageAttributeNames: ['All'],
44-
AttributeNames: ['MessageGroupId'],
45+
AttributeNames: ['MessageGroupId' as QueueAttributeName],
4546
WaitTimeSeconds: 20,
4647
}),
4748
)

features/steps/webhook-steps.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
codeBlockOrThrow,
3-
groupMatcher,
3+
regExpMatchedStep,
44
StepRunner,
55
} from '@nordicsemiconductor/bdd-markdown'
66
import assert from 'assert/strict'
@@ -20,7 +20,7 @@ export const steps = (): StepRunner<World>[] => {
2020
await r.clearQueue()
2121
},
2222
},
23-
groupMatcher(
23+
regExpMatchedStep(
2424
{
2525
regExp:
2626
/^the Webhook Receiver `(?<MessageGroupId>[^"]+)` should be called$/,

0 commit comments

Comments
 (0)