Skip to content

Commit b055f5e

Browse files
committed
Apply linting rules
1 parent 5abff16 commit b055f5e

File tree

11 files changed

+947
-206
lines changed

11 files changed

+947
-206
lines changed

internal/events/src/events/event-envelope.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,12 @@ export function EventEnvelope<TData extends z.ZodTypeAny>(
109109
examples: ["2025-10-01T10:15:30.000Z"],
110110
}),
111111

112-
datacontenttype:
113-
z.literal("application/json").meta({
114-
title: "Data Content Type",
115-
description:
116-
"Media type for the data field (fixed to application/json).",
117-
examples: ["application/json"],
118-
},
119-
),
112+
datacontenttype: z.literal("application/json").meta({
113+
title: "Data Content Type",
114+
description:
115+
"Media type for the data field (fixed to application/json).",
116+
examples: ["application/json"],
117+
}),
120118

121119
traceparent: z
122120
.string()

lambdas/letter-updates-transformer/jest.config.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { Config } from 'jest';
1+
import type { Config } from "jest";
22

33
export const baseJestConfig: Config = {
4-
preset: 'ts-jest',
4+
preset: "ts-jest",
55

66
// Automatically clear mock calls, instances, contexts and results before every test
77
clearMocks: true,
@@ -10,10 +10,10 @@ export const baseJestConfig: Config = {
1010
collectCoverage: true,
1111

1212
// The directory where Jest should output its coverage files
13-
coverageDirectory: './.reports/unit/coverage',
13+
coverageDirectory: "./.reports/unit/coverage",
1414

1515
// Indicates which provider should be used to instrument code for coverage
16-
coverageProvider: 'babel',
16+
coverageProvider: "babel",
1717

1818
coverageThreshold: {
1919
global: {
@@ -24,36 +24,36 @@ export const baseJestConfig: Config = {
2424
},
2525
},
2626

27-
coveragePathIgnorePatterns: ['/__tests__/'],
28-
transform: { '^.+\\.ts$': 'ts-jest' },
29-
testPathIgnorePatterns: ['.build'],
30-
testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'],
27+
coveragePathIgnorePatterns: ["/__tests__/"],
28+
transform: { "^.+\\.ts$": "ts-jest" },
29+
testPathIgnorePatterns: [".build"],
30+
testMatch: ["**/?(*.)+(spec|test).[jt]s?(x)"],
3131

3232
// Use this configuration option to add custom reporters to Jest
3333
reporters: [
34-
'default',
34+
"default",
3535
[
36-
'jest-html-reporter',
36+
"jest-html-reporter",
3737
{
38-
pageTitle: 'Test Report',
39-
outputPath: './.reports/unit/test-report.html',
38+
pageTitle: "Test Report",
39+
outputPath: "./.reports/unit/test-report.html",
4040
includeFailureMsg: true,
4141
},
4242
],
4343
],
4444

4545
// The test environment that will be used for testing
46-
testEnvironment: 'jsdom',
46+
testEnvironment: "jsdom",
4747
};
4848

4949
const utilsJestConfig = {
5050
...baseJestConfig,
5151

52-
testEnvironment: 'node',
52+
testEnvironment: "node",
5353

5454
coveragePathIgnorePatterns: [
5555
...(baseJestConfig.coveragePathIgnorePatterns ?? []),
56-
'zod-validators.ts',
56+
"zod-validators.ts",
5757
],
5858
};
5959

lambdas/letter-updates-transformer/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
22
"dependencies": {
3+
"@aws-sdk/client-sns": "^3.943.0",
4+
"@aws-sdk/util-dynamodb": "^3.943.0",
5+
"@internal/datastore": "^0.1.0",
36
"@nhsdigital/nhs-notify-event-schemas-supplier-api": "*",
4-
"esbuild": "^0.24.0"
7+
"aws-lambda": "^1.0.7",
8+
"esbuild": "^0.24.0",
9+
"pino": "^10.1.0"
510
},
611
"devDependencies": {
712
"@tsconfig/node22": "^22.0.2",

0 commit comments

Comments
 (0)