Skip to content

Commit

Permalink
fix: use new package locations
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Jul 12, 2024
1 parent 6fa7e7c commit 83df07c
Show file tree
Hide file tree
Showing 12 changed files with 135 additions and 196 deletions.
4 changes: 2 additions & 2 deletions cdk/TestApp.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as CDK from 'aws-cdk-lib'
import { AppProps } from 'aws-cdk-lib'
import { PackedLambda } from './packLambda.js'
import type { AppProps } from 'aws-cdk-lib'
import type { PackedLambda } from './packLambda.js'
import { WebhookReceiverStack } from './WebhookReceiverStack.js'

export class TestApp extends CDK.App {
Expand Down
4 changes: 2 additions & 2 deletions cdk/WebhookReceiverStack.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { App } from 'aws-cdk-lib'
import {
App,
CfnOutput,
Duration,
aws_iam as IAM,
Expand All @@ -9,7 +9,7 @@ import {
aws_sqs as SQS,
Stack,
} from 'aws-cdk-lib'
import { PackedLambda } from './packLambda.js'
import type { PackedLambda } from './packLambda.js'

/**
* This is the CloudFormation stack which contains the webhook receiver resources.
Expand Down
2 changes: 1 addition & 1 deletion features/console-reporter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { consoleReporter } from '@nordicsemiconductor/bdd-markdown'
import { consoleReporter } from '@bifravst/bdd-markdown'

const chunks: string[] = []

Expand Down
2 changes: 1 addition & 1 deletion features/markdown-reporter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { markdownReporter } from '@nordicsemiconductor/bdd-markdown'
import { markdownReporter } from '@bifravst/bdd-markdown'

process.stdin.on('data', async (data) => {
console.log(await markdownReporter(JSON.parse(data.toString())))
Expand Down
4 changes: 2 additions & 2 deletions features/run-features.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CloudFormationClient } from '@aws-sdk/client-cloudformation'
import { runFolder } from '@nordicsemiconductor/bdd-markdown'
import { stackOutput } from '@nordicsemiconductor/cloudformation-helpers'
import { runFolder } from '@bifravst/bdd-markdown'
import { stackOutput } from '@bifravst/cloudformation-helpers'
import * as path from 'path'
import { stackBaseName } from '../cdk/stackBaseName.js'
import { steps as restSteps } from './steps/rest-steps.js'
Expand Down
12 changes: 5 additions & 7 deletions features/steps/rest-steps.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import {
codeBlockOrThrow,
StepRunner,
regExpMatchedStep,
} from '@nordicsemiconductor/bdd-markdown'
import type { StepRunner } from '@bifravst/bdd-markdown'
import { codeBlockOrThrow, regExpMatchedStep } from '@bifravst/bdd-markdown'
import assert from 'assert/strict'
import fetch, { Response } from 'node-fetch'
import { World } from '../run-features.js'
import type { Response } from 'node-fetch'
import fetch from 'node-fetch'
import type { World } from '../run-features.js'
import { Type } from '@sinclair/typebox'

export const steps = (): StepRunner<World>[] => {
Expand Down
4 changes: 2 additions & 2 deletions features/steps/webhook-receiver.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { QueueAttributeName } from '@aws-sdk/client-sqs'
import {
DeleteMessageCommand,
QueueAttributeName,
ReceiveMessageCommand,
SQSClient,
} from '@aws-sdk/client-sqs'
import { Logger } from '@nordicsemiconductor/bdd-markdown'
import type { Logger } from '@bifravst/bdd-markdown'

type WebhookRequest = {
headers: { [key: string]: string }
Expand Down
9 changes: 3 additions & 6 deletions features/steps/webhook-steps.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import {
codeBlockOrThrow,
regExpMatchedStep,
StepRunner,
} from '@nordicsemiconductor/bdd-markdown'
import type { StepRunner } from '@bifravst/bdd-markdown'
import { codeBlockOrThrow, regExpMatchedStep } from '@bifravst/bdd-markdown'
import assert from 'assert/strict'
import { World } from '../run-features.js'
import type { World } from '../run-features.js'
import { WebhookReceiver } from './webhook-receiver.js'
import { Type } from '@sinclair/typebox'

Expand Down
10 changes: 4 additions & 6 deletions features/traceToMermaid.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import {
GetTraceGraphCommand,
GetTraceGraphCommandOutput,
XRayClient,
} from '@aws-sdk/client-xray'
import { LogLevel, SuiteResult } from '@nordicsemiconductor/bdd-markdown'
import type { GetTraceGraphCommandOutput } from '@aws-sdk/client-xray'
import { GetTraceGraphCommand, XRayClient } from '@aws-sdk/client-xray'
import type { SuiteResult } from '@bifravst/bdd-markdown'
import { LogLevel } from '@bifravst/bdd-markdown'
import os from 'os'

const traceToMermaid = (trace: GetTraceGraphCommandOutput): string => {
Expand Down
9 changes: 3 additions & 6 deletions lambda/webhookReceiver.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import {
MessageAttributeValue,
SendMessageCommand,
SQSClient,
} from '@aws-sdk/client-sqs'
import {
import type { MessageAttributeValue } from '@aws-sdk/client-sqs'
import { SendMessageCommand, SQSClient } from '@aws-sdk/client-sqs'
import type {
APIGatewayEventRequestContextV2,
APIGatewayProxyEventV2WithRequestContext,
APIGatewayProxyResultV2,
Expand Down
Loading

0 comments on commit 83df07c

Please sign in to comment.