diff --git a/.github/workflows/stage-1-commit.yaml b/.github/workflows/stage-1-commit.yaml index a7c7c767..2a9b3604 100644 --- a/.github/workflows/stage-1-commit.yaml +++ b/.github/workflows/stage-1-commit.yaml @@ -1,5 +1,8 @@ name: "Commit stage" +permissions: + contents: read + on: workflow_call: inputs: diff --git a/.gitleaksignore b/.gitleaksignore index 89ef2895..bb8000c0 100644 --- a/.gitleaksignore +++ b/.gitleaksignore @@ -22,3 +22,4 @@ e12407e09151898bfd8d049d57eee9db9977d56b:.github/copilot-instructions.md:generic 82f6be3e657b46d8447e77cdc1894fba0b855c26:tests/component-tests/testCases/create-letter-request.spec.ts:generic-api-key:10 debc75a97cfe551a69fd1e8694be483213322a9d:pact-contracts/pacts/letter-rendering/supplier-api-letter-request-prepared.json:generic-api-key:10 777eb4047ad06b9e939a292ee18664a0ffee4f29:tests/resources/prepared-letter.json:generic-api-key:4 +4fa1923947bbff2387218d698d766cbb7c121a0f:pact-contracts/pacts/letter-rendering/supplier-api-letter-request-prepared.json:generic-api-key:10 diff --git a/docs/package.json b/docs/package.json index 2f2d699b..c694856e 100644 --- a/docs/package.json +++ b/docs/package.json @@ -14,6 +14,7 @@ "build": "JEKYLL_ENV=production bundle exec jekyll build --trace --config _config.yml,_config.version.yml", "debug": "JEKYLL_ENV=development BUNDLE_GEMFILE=Gemfile bundle exec jekyll serve --config _config.yml,_config.dev.yml,_config.version.yml --limit_posts 100 --trace", "generate-includes": "./generate-includes.sh", + "lint": "echo \"Documentation module has no code to lint\"", "test:unit": "echo \"Documentation module has no unit tests\"", "typecheck": "echo \"Documentation module has no typescript to typecheck\"" }, diff --git a/internal/events/package.json b/internal/events/package.json index 395859af..04fcac17 100644 --- a/internal/events/package.json +++ b/internal/events/package.json @@ -50,5 +50,5 @@ "typecheck": "tsc --noEmit" }, "types": "dist/index.d.ts", - "version": "1.0.7" + "version": "1.0.8" } diff --git a/internal/events/tsconfig.json b/internal/events/tsconfig.json index fa5c2949..167e805a 100644 --- a/internal/events/tsconfig.json +++ b/internal/events/tsconfig.json @@ -4,8 +4,7 @@ "isolatedModules": true, "module": "commonjs", "outDir": "dist", - "resolveJsonModule": true, - "rootDir": "src" + "resolveJsonModule": true }, "exclude": [ "node_modules", @@ -14,6 +13,7 @@ "extends": "../../tsconfig.base.json", "include": [ "src/**/*", - "package.json" + "package.json", + "jest.config.ts" ] } diff --git a/lambdas/api-handler/package.json b/lambdas/api-handler/package.json index 5a436473..d68c90ec 100644 --- a/lambdas/api-handler/package.json +++ b/lambdas/api-handler/package.json @@ -7,6 +7,7 @@ "@aws-sdk/s3-request-presigner": "^3.925.0", "@internal/datastore": "*", "@internal/helpers": "*", + "aws-lambda": "^1.0.7", "esbuild": "^0.25.11", "pino": "^9.7.0", "zod": "^4.1.11" diff --git a/lambdas/api-handler/src/mappers/letter-mapper.ts b/lambdas/api-handler/src/mappers/letter-mapper.ts index 3259d79b..c11d6d8c 100644 --- a/lambdas/api-handler/src/mappers/letter-mapper.ts +++ b/lambdas/api-handler/src/mappers/letter-mapper.ts @@ -59,7 +59,7 @@ export function mapToUpdateCommands( request: PostLettersRequest, supplierId: string, ): UpdateLetterCommand[] { - return request.data.map( (letterToUpdate: PostLettersRequestResource) => ({ + return request.data.map((letterToUpdate: PostLettersRequestResource) => ({ id: letterToUpdate.id, supplierId, status: LetterStatus.parse(letterToUpdate.attributes.status), diff --git a/lambdas/authorizer/package.json b/lambdas/authorizer/package.json index 76c674c5..108b76dc 100644 --- a/lambdas/authorizer/package.json +++ b/lambdas/authorizer/package.json @@ -3,6 +3,7 @@ "@aws-sdk/client-dynamodb": "^3.858.0", "@aws-sdk/lib-dynamodb": "^3.858.0", "@internal/datastore": "*", + "aws-lambda": "^1.0.7", "esbuild": "^0.25.11", "pino": "^9.7.0", "zod": "^4.1.11" diff --git a/lambdas/letter-updates-transformer/src/mappers/__tests__/letter-mapper.test.ts b/lambdas/letter-updates-transformer/src/mappers/__tests__/letter-mapper.test.ts index 0935a491..d36f52b4 100644 --- a/lambdas/letter-updates-transformer/src/mappers/__tests__/letter-mapper.test.ts +++ b/lambdas/letter-updates-transformer/src/mappers/__tests__/letter-mapper.test.ts @@ -23,9 +23,9 @@ describe("letter-mapper", () => { $LetterEvent.parse(event); expect(event.type).toBe("uk.nhs.notify.supplier-api.letter.PRINTED.v1"); expect(event.dataschema).toBe( - `https://notify.nhs.uk/cloudevents/schemas/supplier-api/letter.PRINTED.${event.dataschemaversion}.schema.json` + `https://notify.nhs.uk/cloudevents/schemas/supplier-api/letter.PRINTED.${event.dataschemaversion}.schema.json`, ); - expect(event.dataschemaversion).toBe("1.0.7"); + expect(event.dataschemaversion).toBe("1.0.8"); expect(event.subject).toBe("letter-origin/supplier-api/letter/id1"); expect(event.time).toBe("2025-11-24T15:55:18.000Z"); expect(event.recordedtime).toBe("2025-11-24T15:55:18.000Z"); diff --git a/lambdas/upsert-letter/src/handler/upsert-handler.ts b/lambdas/upsert-letter/src/handler/upsert-handler.ts index 141e37ce..6849fbcc 100644 --- a/lambdas/upsert-letter/src/handler/upsert-handler.ts +++ b/lambdas/upsert-letter/src/handler/upsert-handler.ts @@ -47,7 +47,7 @@ function getOperationFromType(type: string): UpsertOperation { preparedRequest, supplierSpec.supplierId, supplierSpec.specId, - supplierSpec.specId, //use specId for now + supplierSpec.specId, // use specId for now ); await deps.letterRepo.putLetter(letterToInsert); }, @@ -86,7 +86,7 @@ function mapToInsertLetter( subject: upsertRequest.subject, createdAt: now, updatedAt: now, - billingRef: billingRef, + billingRef, }; } diff --git a/package-lock.json b/package-lock.json index c976b2fa..831ac7ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -125,7 +125,7 @@ }, "internal/events": { "name": "@nhsdigital/nhs-notify-event-schemas-supplier-api", - "version": "1.0.6", + "version": "1.0.7", "license": "MIT", "dependencies": { "@asyncapi/bundler": "^0.6.4", @@ -178,6 +178,7 @@ "@aws-sdk/s3-request-presigner": "^3.925.0", "@internal/datastore": "*", "@internal/helpers": "*", + "aws-lambda": "^1.0.7", "esbuild": "^0.25.11", "pino": "^9.7.0", "zod": "^4.1.11" @@ -221,6 +222,7 @@ "@aws-sdk/client-dynamodb": "^3.858.0", "@aws-sdk/lib-dynamodb": "^3.858.0", "@internal/datastore": "*", + "aws-lambda": "^1.0.7", "esbuild": "^0.25.11", "pino": "^9.7.0", "zod": "^4.1.11" @@ -3059,7 +3061,6 @@ "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-validator-identifier": "^7.27.1", @@ -3074,7 +3075,6 @@ "version": "7.28.5", "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.5.tgz", "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -3084,7 +3084,6 @@ "version": "7.28.5", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz", "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", - "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.27.1", @@ -3115,7 +3114,6 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -3125,7 +3123,6 @@ "version": "7.28.5", "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.5.tgz", "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==", - "dev": true, "license": "MIT", "dependencies": { "@babel/parser": "^7.28.5", @@ -3142,7 +3139,6 @@ "version": "7.27.2", "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", - "dev": true, "license": "MIT", "dependencies": { "@babel/compat-data": "^7.27.2", @@ -3159,7 +3155,6 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -3169,7 +3164,6 @@ "version": "7.28.0", "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -3179,7 +3173,6 @@ "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", - "dev": true, "license": "MIT", "dependencies": { "@babel/traverse": "^7.27.1", @@ -3193,7 +3186,6 @@ "version": "7.28.3", "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-module-imports": "^7.27.1", @@ -3211,7 +3203,6 @@ "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -3221,7 +3212,6 @@ "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -3231,7 +3221,6 @@ "version": "7.28.5", "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -3241,7 +3230,6 @@ "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -3251,7 +3239,6 @@ "version": "7.28.4", "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz", "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==", - "dev": true, "license": "MIT", "dependencies": { "@babel/template": "^7.27.2", @@ -3265,7 +3252,6 @@ "version": "7.28.5", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz", "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==", - "dev": true, "license": "MIT", "dependencies": { "@babel/types": "^7.28.5" @@ -3281,7 +3267,6 @@ "version": "7.8.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -3294,7 +3279,6 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -3307,7 +3291,6 @@ "version": "7.12.13", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" @@ -3320,7 +3303,6 @@ "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" @@ -3336,7 +3318,6 @@ "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.27.1" @@ -3352,7 +3333,6 @@ "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" @@ -3365,7 +3345,6 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -3378,7 +3357,6 @@ "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.27.1" @@ -3394,7 +3372,6 @@ "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" @@ -3407,7 +3384,6 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -3420,7 +3396,6 @@ "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" @@ -3433,7 +3408,6 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -3446,7 +3420,6 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -3459,7 +3432,6 @@ "version": "7.8.3", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" @@ -3472,7 +3444,6 @@ "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" @@ -3488,7 +3459,6 @@ "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" @@ -3504,7 +3474,6 @@ "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.27.1" @@ -3530,7 +3499,6 @@ "version": "7.27.2", "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", - "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.27.1", @@ -3545,7 +3513,6 @@ "version": "7.28.5", "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.5.tgz", "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==", - "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.27.1", @@ -3564,7 +3531,6 @@ "version": "7.28.5", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz", "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==", - "dev": true, "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.27.1", @@ -4827,7 +4793,6 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, "license": "ISC", "dependencies": { "camelcase": "^5.3.1", @@ -4844,7 +4809,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" @@ -4854,7 +4818,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, "license": "MIT", "dependencies": { "locate-path": "^5.0.0", @@ -4868,7 +4831,6 @@ "version": "3.14.2", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", - "dev": true, "license": "MIT", "dependencies": { "argparse": "^1.0.7", @@ -4882,7 +4844,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, "license": "MIT", "dependencies": { "p-locate": "^4.1.0" @@ -4895,7 +4856,6 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, "license": "MIT", "dependencies": { "p-try": "^2.0.0" @@ -4911,7 +4871,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, "license": "MIT", "dependencies": { "p-limit": "^2.2.0" @@ -4924,7 +4883,6 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -4934,7 +4892,6 @@ "version": "0.1.3", "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -5010,7 +4967,6 @@ "version": "30.0.1", "resolved": "https://registry.npmjs.org/@jest/diff-sequences/-/diff-sequences-30.0.1.tgz", "integrity": "sha512-n5H8QLDJ47QqbCNn5SuFjCRDrOLEZ0h8vAHCK5RL9Ls7Xa8AQLa/YxAc9UjFqoEDM48muwtBGjtMY5cr0PLDCw==", - "dev": true, "license": "MIT", "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" @@ -5020,7 +4976,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-30.2.0.tgz", "integrity": "sha512-/QPTL7OBJQ5ac09UDRa3EQes4gt1FTEG/8jZ/4v5IVzx+Cv7dLxlVIvfvSVRiiX2drWyXeBjkMSR8hvOWSog5g==", - "dev": true, "license": "MIT", "dependencies": { "@jest/fake-timers": "30.2.0", @@ -5064,7 +5019,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-30.2.0.tgz", "integrity": "sha512-V9yxQK5erfzx99Sf+7LbhBwNWEZ9eZay8qQ9+JSC0TrMR1pMDHLMY+BnVPacWU6Jamrh252/IKo4F1Xn/zfiqA==", - "dev": true, "license": "MIT", "dependencies": { "expect": "30.2.0", @@ -5078,7 +5032,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.2.0.tgz", "integrity": "sha512-1JnRfhqpD8HGpOmQp180Fo9Zt69zNtC+9lR+kT7NVL05tNXIi+QC8Csz7lfidMoVLPD3FnOtcmp0CEFnxExGEA==", - "dev": true, "license": "MIT", "dependencies": { "@jest/get-type": "30.1.0" @@ -5091,7 +5044,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-30.2.0.tgz", "integrity": "sha512-HI3tRLjRxAbBy0VO8dqqm7Hb2mIa8d5bg/NJkyQcOk7V118ObQML8RC5luTF/Zsg4474a+gDvhce7eTnP4GhYw==", - "dev": true, "license": "MIT", "dependencies": { "@jest/types": "30.2.0", @@ -5109,7 +5061,6 @@ "version": "30.1.0", "resolved": "https://registry.npmjs.org/@jest/get-type/-/get-type-30.1.0.tgz", "integrity": "sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA==", - "dev": true, "license": "MIT", "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" @@ -5119,7 +5070,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-30.2.0.tgz", "integrity": "sha512-b63wmnKPaK+6ZZfpYhz9K61oybvbI1aMcIs80++JI1O1rR1vaxHUCNqo3ITu6NU0d4V34yZFoHMn/uoKr/Rwfw==", - "dev": true, "license": "MIT", "dependencies": { "@jest/environment": "30.2.0", @@ -5135,7 +5085,6 @@ "version": "30.0.1", "resolved": "https://registry.npmjs.org/@jest/pattern/-/pattern-30.0.1.tgz", "integrity": "sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA==", - "dev": true, "license": "MIT", "dependencies": { "@types/node": "*", @@ -5237,7 +5186,6 @@ "version": "30.0.5", "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.0.5.tgz", "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==", - "dev": true, "license": "MIT", "dependencies": { "@sinclair/typebox": "^0.34.0" @@ -5250,7 +5198,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/@jest/snapshot-utils/-/snapshot-utils-30.2.0.tgz", "integrity": "sha512-0aVxM3RH6DaiLcjj/b0KrIBZhSX1373Xci4l3cW5xiUWPctZ59zQ7jj4rqcJQ/Z8JuN/4wX3FpJSa3RssVvCug==", - "dev": true, "license": "MIT", "dependencies": { "@jest/types": "30.2.0", @@ -5313,7 +5260,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-30.2.0.tgz", "integrity": "sha512-XsauDV82o5qXbhalKxD7p4TZYYdwcaEXC77PPD2HixEFF+6YGppjrAAQurTl2ECWcEomHBMMNS9AH3kcCFx8jA==", - "dev": true, "license": "MIT", "dependencies": { "@babel/core": "^7.27.4", @@ -5340,7 +5286,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/@jest/types/-/types-30.2.0.tgz", "integrity": "sha512-H9xg1/sfVvyfU7o3zMfBEjQ1gcsdeTMgqHoYdN79tuLqfTtuu7WckRA1R5whDwOzxaZAeMKTYWqP+WCAi0CHsg==", - "dev": true, "license": "MIT", "dependencies": { "@jest/pattern": "30.0.1", @@ -5359,7 +5304,6 @@ "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", @@ -5370,7 +5314,6 @@ "version": "2.3.5", "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", @@ -5381,7 +5324,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.0.0" @@ -5391,14 +5333,12 @@ "version": "1.5.5", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "dev": true, "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.31", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", @@ -6131,7 +6071,6 @@ "version": "0.2.9", "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.9.tgz", "integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==", - "dev": true, "license": "MIT", "engines": { "node": "^12.20.0 || ^14.18.0 || >=16.0.0" @@ -6552,14 +6491,12 @@ "version": "0.34.47", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.47.tgz", "integrity": "sha512-ZGIBQ+XDvO5JQku9wmwtabcVTHJsgSWAHYtVuM9pBNNR5E88v6Jcj/llpmsjivig5X8A8HHOb4/mbEKPS5EvAw==", - "dev": true, "license": "MIT" }, "node_modules/@sinonjs/commons": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" @@ -6569,7 +6506,6 @@ "version": "13.0.5", "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-13.0.5.tgz", "integrity": "sha512-36/hTbH2uaWuGVERyC6da9YwGWnzUZXuPro/F2LfsdOsLnCojz/iSH8MxUt/FD2S5XBSVPhmArFUXcpCQ2Hkiw==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^3.0.1" @@ -8139,14 +8075,12 @@ "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true, "license": "MIT" }, "node_modules/@types/istanbul-lib-report": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", - "dev": true, "license": "MIT", "dependencies": { "@types/istanbul-lib-coverage": "*" @@ -8156,7 +8090,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", - "dev": true, "license": "MIT", "dependencies": { "@types/istanbul-lib-report": "*" @@ -8209,7 +8142,6 @@ "version": "25.0.3", "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.3.tgz", "integrity": "sha512-W609buLVRVmeW693xKfzHeIV6nJGGz98uCPfeXI1ELMLXVeKYZ9m15fAMSaUPBHYLGFsVRcMmSCksQOrZV9BYA==", - "dev": true, "license": "MIT", "dependencies": { "undici-types": "~7.16.0" @@ -8219,7 +8151,6 @@ "version": "7.16.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==", - "dev": true, "license": "MIT" }, "node_modules/@types/sarif": { @@ -8270,7 +8201,6 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", - "dev": true, "license": "MIT" }, "node_modules/@types/stylis": { @@ -8306,7 +8236,6 @@ "version": "17.0.35", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", - "dev": true, "license": "MIT", "dependencies": { "@types/yargs-parser": "*" @@ -8316,7 +8245,6 @@ "version": "21.0.3", "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "dev": true, "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { @@ -9053,7 +8981,6 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", @@ -9067,7 +8994,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, "license": "MIT", "engines": { "node": ">=8.6" @@ -9727,7 +9653,6 @@ "version": "7.0.1", "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-7.0.1.tgz", "integrity": "sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==", - "dev": true, "license": "BSD-3-Clause", "workspaces": [ "test/babel-8" @@ -9760,7 +9685,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", - "dev": true, "license": "MIT", "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", @@ -9927,7 +9851,6 @@ "version": "2.9.11", "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.11.tgz", "integrity": "sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==", - "dev": true, "license": "Apache-2.0", "bin": { "baseline-browser-mapping": "dist/cli.js" @@ -10173,7 +10096,6 @@ "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, "license": "MIT", "dependencies": { "fill-range": "^7.1.1" @@ -10186,7 +10108,6 @@ "version": "4.28.1", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", - "dev": true, "funding": [ { "type": "opencollective", @@ -10233,7 +10154,6 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" @@ -10398,7 +10318,6 @@ "version": "5.3.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -10418,7 +10337,6 @@ "version": "1.0.30001762", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001762.tgz", "integrity": "sha512-PxZwGNvH7Ak8WX5iXzoK1KPZttBXNPuaOvI2ZYU7NrlM+d9Ov+TUvlLOBNGzVXAntMSMMlJPd+jY6ovrVjSmUw==", - "dev": true, "funding": [ { "type": "opencollective", @@ -10541,7 +10459,6 @@ "version": "4.3.1", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==", - "dev": true, "funding": [ { "type": "github", @@ -11062,7 +10979,6 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, "license": "MIT" }, "node_modules/cookie": { @@ -11794,7 +11710,6 @@ "version": "1.5.267", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", - "dev": true, "license": "ISC" }, "node_modules/emittery": { @@ -13220,7 +13135,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/expect/-/expect-30.2.0.tgz", "integrity": "sha512-u/feCi0GPsI+988gU2FLcsHyAHTU0MX1Wg68NhAnN7z/+C5wqG+CY8J53N9ioe8RXgaoz0nBR/TYMf3AycUuPw==", - "dev": true, "license": "MIT", "dependencies": { "@jest/expect-utils": "30.2.0", @@ -13324,7 +13238,6 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true, "license": "MIT" }, "node_modules/fast-levenshtein": { @@ -13395,7 +13308,6 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dev": true, "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" @@ -13481,7 +13393,6 @@ "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" @@ -13715,14 +13626,12 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true, "license": "ISC" }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, @@ -13793,7 +13702,6 @@ "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, "license": "MIT", "engines": { "node": ">=6.9.0" @@ -13848,7 +13756,6 @@ "version": "0.1.0", "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true, "license": "MIT", "engines": { "node": ">=8.0.0" @@ -14424,7 +14331,6 @@ "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.8.19" @@ -14461,7 +14367,6 @@ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "dev": true, "license": "ISC", "dependencies": { "once": "^1.3.0", @@ -14888,7 +14793,6 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.12.0" @@ -15143,7 +15047,6 @@ "version": "3.2.2", "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", - "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=8" @@ -15153,7 +15056,6 @@ "version": "6.0.3", "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "@babel/core": "^7.23.9", @@ -15514,7 +15416,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.2.0.tgz", "integrity": "sha512-dQHFo3Pt4/NLlG5z4PxZ/3yZTZ1C7s9hveiOj+GCN+uT109NC2QgsoVZsVOAvbJ3RgKkvyLGXZV9+piDpWbm6A==", - "dev": true, "license": "MIT", "dependencies": { "@jest/diff-sequences": "30.0.1", @@ -15604,7 +15505,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-30.2.0.tgz", "integrity": "sha512-sQA/jCb9kNt+neM0anSj6eZhLZUIhQgwDt7cPGjumgLM4rXsfb9kpnlacmvZz3Q5tb80nS+oG/if+NBKrHC+Xw==", - "dev": true, "license": "MIT", "dependencies": { "@jest/types": "30.2.0", @@ -15666,7 +15566,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.2.0.tgz", "integrity": "sha512-dQ94Nq4dbzmUWkQ0ANAWS9tBRfqCrn0bV9AMYdOi/MHW726xn7eQmMeRTpX2ViC00bpNaWXq+7o4lIQ3AX13Hg==", - "dev": true, "license": "MIT", "dependencies": { "@jest/get-type": "30.1.0", @@ -15682,7 +15581,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.2.0.tgz", "integrity": "sha512-y4DKFLZ2y6DxTWD4cDe07RglV88ZiNEdlRfGtqahfbIjfsw1nMCPx49Uev4IA/hWn3sDKyAnSPwoYSsAEdcimw==", - "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.27.1", @@ -15703,7 +15601,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.2.0.tgz", "integrity": "sha512-JNNNl2rj4b5ICpmAcq+WbLH83XswjPbjH4T7yvGzfAGCPh1rw+xVNbtk+FnRslvt9lkCcdn9i1oAoKUuFsOxRw==", - "dev": true, "license": "MIT", "dependencies": { "@jest/types": "30.2.0", @@ -15751,7 +15648,6 @@ "version": "30.0.1", "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-30.0.1.tgz", "integrity": "sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==", - "dev": true, "license": "MIT", "engines": { "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0" @@ -15908,7 +15804,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-30.2.0.tgz", "integrity": "sha512-5WEtTy2jXPFypadKNpbNkZ72puZCa6UjSr/7djeecHWOu7iYhSXSnHScT8wBz3Rn8Ena5d5RYRcsyKIeqG1IyA==", - "dev": true, "license": "MIT", "dependencies": { "@babel/core": "^7.27.4", @@ -15941,7 +15836,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.2.0.tgz", "integrity": "sha512-QKNsM0o3Xe6ISQU869e+DhG+4CK/48aHYdJZGlFQVTjnbvgpcKyxpzk29fGiO7i/J8VENZ+d2iGnSsvmuHywlA==", - "dev": true, "license": "MIT", "dependencies": { "@jest/types": "30.2.0", @@ -16010,7 +15904,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-30.2.0.tgz", "integrity": "sha512-0Q4Uk8WF7BUwqXHuAjc23vmopWJw5WH7w2tqBoUOZpOjW/ZnR44GXXd1r82RvnmI2GZge3ivrYXk/BE2+VtW2g==", - "dev": true, "license": "MIT", "dependencies": { "@types/node": "*", @@ -16027,7 +15920,6 @@ "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, "license": "MIT", "dependencies": { "has-flag": "^4.0.0" @@ -16077,7 +15969,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, "license": "MIT" }, "node_modules/js-yaml": { @@ -16146,7 +16037,6 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, "license": "MIT", "bin": { "jsesc": "bin/jsesc" @@ -16211,7 +16101,6 @@ "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, "license": "MIT", "bin": { "json5": "lib/cli.js" @@ -16576,7 +16465,6 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, "license": "ISC", "dependencies": { "yallist": "^3.0.2" @@ -16626,7 +16514,6 @@ "version": "1.0.12", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" @@ -16720,7 +16607,6 @@ "version": "4.0.8", "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, "license": "MIT", "dependencies": { "braces": "^3.0.3", @@ -16734,7 +16620,6 @@ "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, "license": "MIT", "engines": { "node": ">=8.6" @@ -16964,7 +16849,6 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true, "license": "MIT" }, "node_modules/natural-compare-lite": { @@ -17135,7 +17019,6 @@ "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true, "license": "MIT" }, "node_modules/node-readfiles": { @@ -17152,7 +17035,6 @@ "version": "2.0.27", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", - "dev": true, "license": "MIT" }, "node_modules/node-sarif-builder": { @@ -17188,7 +17070,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -17770,7 +17651,6 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, "license": "MIT", "engines": { "node": ">=6" @@ -17882,7 +17762,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -17892,7 +17771,6 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -17968,14 +17846,12 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, "license": "ISC" }, "node_modules/picomatch": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "dev": true, "license": "MIT", "engines": { "node": ">=12" @@ -18085,7 +17961,6 @@ "version": "4.0.7", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", - "dev": true, "license": "MIT", "engines": { "node": ">= 6" @@ -18326,7 +18201,6 @@ "version": "30.2.0", "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.2.0.tgz", "integrity": "sha512-9uBdv/B4EefsuAL+pWqueZyZS2Ba+LxfFeQ9DN14HU4bN8bhaxKdkpjpB6fs9+pSjIBu+FXQHImEg8j/Lw0+vA==", - "dev": true, "license": "MIT", "dependencies": { "@jest/schemas": "30.0.5", @@ -18341,7 +18215,6 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, "license": "MIT", "engines": { "node": ">=10" @@ -18717,7 +18590,6 @@ "version": "19.0.0", "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.0.0.tgz", "integrity": "sha512-H91OHcwjZsbq3ClIDHMzBShc1rotbfACdWENsmEf0IFvZ3FgGPtdHMcsv45bQ1hAbgdfiA8SnxTKfDS+x/8m2g==", - "dev": true, "license": "MIT" }, "node_modules/react-tabs": { @@ -19414,7 +19286,6 @@ "version": "7.7.3", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz", "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==", - "dev": true, "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -19919,7 +19790,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, "license": "MIT", "engines": { "node": ">=8" @@ -20573,7 +20443,6 @@ "version": "0.11.11", "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.11.tgz", "integrity": "sha512-MeQTA1r0litLUf0Rp/iisCaL8761lKAZHaimlbGK4j0HysC4PLfqygQj9srcs0m2RdtDYnF8UuYyKpbjHYp7Jw==", - "dev": true, "license": "MIT", "dependencies": { "@pkgr/core": "^0.2.9" @@ -20616,7 +20485,6 @@ "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", @@ -20631,7 +20499,6 @@ "version": "1.1.12", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", @@ -20643,7 +20510,6 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -20664,7 +20530,6 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" @@ -20791,14 +20656,12 @@ "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true, "license": "BSD-3-Clause" }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, "license": "MIT", "dependencies": { "is-number": "^7.0.0" @@ -21593,7 +21456,6 @@ "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, "license": "MIT", "engines": { "node": ">=4" @@ -21827,13 +21689,6 @@ "node": ">=18.17" } }, - "node_modules/undici-types": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.18.2.tgz", - "integrity": "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==", - "extraneous": true, - "license": "MIT" - }, "node_modules/universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", @@ -21892,7 +21747,6 @@ "version": "1.2.3", "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", - "dev": true, "funding": [ { "type": "opencollective", @@ -22122,7 +21976,6 @@ "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "dev": true, "license": "Apache-2.0", "dependencies": { "makeerror": "1.0.12" @@ -22435,7 +22288,6 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", - "dev": true, "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", @@ -22449,7 +22301,6 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, "license": "ISC", "engines": { "node": ">=14" @@ -22542,7 +22393,6 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, "license": "ISC" }, "node_modules/yaml": { @@ -22720,6 +22570,7 @@ "@aws-sdk/client-s3": "^3.858.0", "@aws-sdk/lib-dynamodb": "^3.858.0", "@internal/datastore": "*", + "@jest/globals": "^30.2.0", "esbuild": "^0.25.11", "pino": "^9.7.0", "yargs": "^17.7.2" diff --git a/scripts/tests/lint.sh b/scripts/tests/lint.sh new file mode 100755 index 00000000..2ace8310 --- /dev/null +++ b/scripts/tests/lint.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set -euo pipefail + +cd "$(git rev-parse --show-toplevel)" + +# This file is for you! Edit it to call your unit test suite. Note that the same +# file will be called if you run it locally as if you run it on CI. + +# Replace the following line with something like: +# +# rails test:unit +# python manage.py test +# npm run test +# +# or whatever is appropriate to your project. You should *only* run your fast +# tests from here. If you want to run other test suites, see the predefined +# tasks in scripts/test.mk. + +# run tests +npm ci +npm run lint --workspaces diff --git a/scripts/tests/typecheck.sh b/scripts/tests/typecheck.sh new file mode 100755 index 00000000..2ed6c2e0 --- /dev/null +++ b/scripts/tests/typecheck.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +set -euo pipefail + +cd "$(git rev-parse --show-toplevel)" + +# This file is for you! Edit it to call your unit test suite. Note that the same +# file will be called if you run it locally as if you run it on CI. + +# Replace the following line with something like: +# +# rails test:unit +# python manage.py test +# npm run test +# +# or whatever is appropriate to your project. You should *only* run your fast +# tests from here. If you want to run other test suites, see the predefined +# tasks in scripts/test.mk. + +# run tests +npm ci +npm run typecheck --workspaces diff --git a/scripts/utilities/letter-test-data/jest.config.ts b/scripts/utilities/letter-test-data/jest.config.ts index cc9a39c9..445325b8 100644 --- a/scripts/utilities/letter-test-data/jest.config.ts +++ b/scripts/utilities/letter-test-data/jest.config.ts @@ -1,7 +1,7 @@ -import type { Config } from 'jest'; +import type { Config } from "jest"; export const baseJestConfig: Config = { - preset: 'ts-jest', + preset: "ts-jest", // Automatically clear mock calls, instances, contexts and results before every test clearMocks: true, @@ -10,10 +10,10 @@ export const baseJestConfig: Config = { collectCoverage: true, // The directory where Jest should output its coverage files - coverageDirectory: './.reports/unit/coverage', + coverageDirectory: "./.reports/unit/coverage", // Indicates which provider should be used to instrument code for coverage - coverageProvider: 'babel', + coverageProvider: "babel", coverageThreshold: { global: { @@ -24,38 +24,38 @@ export const baseJestConfig: Config = { }, }, - coveragePathIgnorePatterns: ['/__tests__/'], - transform: { '^.+\\.ts$': 'ts-jest' }, - testPathIgnorePatterns: ['.build'], - testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'], + coveragePathIgnorePatterns: ["/__tests__/"], + transform: { "^.+\\.ts$": "ts-jest" }, + testPathIgnorePatterns: [".build"], + testMatch: ["**/?(*.)+(spec|test).[jt]s?(x)"], // Use this configuration option to add custom reporters to Jest reporters: [ - 'default', + "default", [ - 'jest-html-reporter', + "jest-html-reporter", { - pageTitle: 'Test Report', - outputPath: './.reports/unit/test-report.html', + pageTitle: "Test Report", + outputPath: "./.reports/unit/test-report.html", includeFailureMsg: true, }, ], ], // The test environment that will be used for testing - testEnvironment: 'jsdom', + testEnvironment: "jsdom", }; const utilsJestConfig = { ...baseJestConfig, - testEnvironment: 'node', + testEnvironment: "node", coveragePathIgnorePatterns: [ ...(baseJestConfig.coveragePathIgnorePatterns ?? []), - 'cli/index.ts', - 'helpers/s3_helpers.ts', - 'letter-repo-factory.ts', + "cli/index.ts", + "helpers/s3_helpers.ts", + "letter-repo-factory.ts", ], }; diff --git a/scripts/utilities/letter-test-data/package.json b/scripts/utilities/letter-test-data/package.json index 58be5cd6..9b1284fe 100644 --- a/scripts/utilities/letter-test-data/package.json +++ b/scripts/utilities/letter-test-data/package.json @@ -4,6 +4,7 @@ "@aws-sdk/client-s3": "^3.858.0", "@aws-sdk/lib-dynamodb": "^3.858.0", "@internal/datastore": "*", + "@jest/globals": "^30.2.0", "esbuild": "^0.25.11", "pino": "^9.7.0", "yargs": "^17.7.2" diff --git a/scripts/utilities/letter-test-data/src/__test__/helpers/create_letter_helpers.test.ts b/scripts/utilities/letter-test-data/src/__test__/helpers/create-letter-helpers.test.ts similarity index 91% rename from scripts/utilities/letter-test-data/src/__test__/helpers/create_letter_helpers.test.ts rename to scripts/utilities/letter-test-data/src/__test__/helpers/create-letter-helpers.test.ts index ad34b021..069bc038 100644 --- a/scripts/utilities/letter-test-data/src/__test__/helpers/create_letter_helpers.test.ts +++ b/scripts/utilities/letter-test-data/src/__test__/helpers/create-letter-helpers.test.ts @@ -1,9 +1,12 @@ import { LetterRepository } from "@internal/datastore/src/letter-repository"; import { LetterStatusType } from "@internal/datastore"; -import { createLetter, createLetterDto } from "../../helpers/create_letter_helpers"; -import { uploadFile } from "../../helpers/s3_helpers"; +import { + createLetter, + createLetterDto, +} from "../../helpers/create-letter-helpers"; +import uploadFile from "../../helpers/s3-helpers"; -jest.mock("../../helpers/s3_helpers"); +jest.mock("../../helpers/s3-helpers"); describe("Create letter helpers", () => { beforeEach(() => { @@ -56,7 +59,7 @@ describe("Create letter helpers", () => { url: "s3://bucketName/supplierId/targetFilename", source: "/data-plane/letter-rendering/letter-test-data", subject: "supplier-api/letter-test-data/letterId", - billingRef: "specificationId" + billingRef: "specificationId", }); }); @@ -86,7 +89,7 @@ describe("Create letter helpers", () => { updatedAt: "2020-02-01T00:00:00.000Z", source: "/data-plane/letter-rendering/letter-test-data", subject: "supplier-api/letter-test-data/testLetterId", - billingRef: "testSpecId" + billingRef: "testSpecId", }); }); }); diff --git a/scripts/utilities/letter-test-data/src/__test__/helpers/s3-helpers.test.ts b/scripts/utilities/letter-test-data/src/__test__/helpers/s3-helpers.test.ts new file mode 100644 index 00000000..22e56cd5 --- /dev/null +++ b/scripts/utilities/letter-test-data/src/__test__/helpers/s3-helpers.test.ts @@ -0,0 +1,87 @@ +/** + * Unit tests for s3-helpers.ts + * + * Mocks: + * - @aws-sdk/client-s3: S3Client (with send) and PutObjectCommand + * - node:fs.readFileSync to avoid touching the filesystem + */ + +import * as s3Module from "@aws-sdk/client-s3"; +import uploadFile from "../../helpers/s3-helpers"; + +jest.mock("@aws-sdk/client-s3", () => { + const sendMock = jest.fn(); + class PutObjectCommand { + input: any; + + constructor(input: any) { + this.input = input; + } + } + const S3Client = jest.fn().mockImplementation(() => ({ send: sendMock })); + return { + S3Client, + PutObjectCommand, + __sendMock: sendMock, + __esModule: true, + }; +}); + +jest.mock("node:fs", () => ({ + readFileSync: jest.fn().mockReturnValue(Buffer.from("fake-pdf-bytes")), +})); + +describe("uploadFile", () => { + const bucket = "my-bucket"; + const supplierId = "supplier-1"; + const sourceFilename = "some.pdf"; + const targetFilename = "target.pdf"; + + beforeEach(() => { + jest.clearAllMocks(); + }); + + it("calls S3Client.send with a PutObjectCommand containing correct params", async () => { + const sendMock = (s3Module as any).__sendMock as jest.Mock; + sendMock.mockResolvedValue({ ETag: '"etag-value"' }); + + await expect( + uploadFile(bucket, supplierId, sourceFilename, targetFilename), + ).resolves.toBeDefined(); + + // S3Client is a mocked constructor — grab the instance that was created + const S3ClientMock = (s3Module as any).S3Client as jest.Mock; + expect(S3ClientMock).toHaveBeenCalled(); + + const instance = S3ClientMock.mock.results[0].value; + expect(instance.send).toHaveBeenCalledTimes(1); + + const calledWith = instance.send.mock.calls[0][0]; + // The mocked PutObjectCommand stores input as `input` property + expect(calledWith).toHaveProperty("input"); + expect(calledWith.input).toEqual({ + Bucket: bucket, + Key: `${supplierId}/${targetFilename}`, + Body: Buffer.from("fake-pdf-bytes"), + ContentType: "application/pdf", + }); + }); + + it("logs and rethrows when S3Client.send rejects", async () => { + const sendMock = (s3Module as any).__sendMock as jest.Mock; + const err = new Error("upload-failed"); + sendMock.mockRejectedValueOnce(err); + + const consoleSpy = jest + .spyOn(console, "error") + .mockImplementation(() => {}); + + await expect( + uploadFile(bucket, supplierId, sourceFilename, targetFilename), + ).rejects.toThrow("upload-failed"); + + expect(consoleSpy).toHaveBeenCalledWith("Error uploading file:", err); + + consoleSpy.mockRestore(); + }); +}); diff --git a/scripts/utilities/letter-test-data/src/cli/index.ts b/scripts/utilities/letter-test-data/src/cli/index.ts index a3026200..00c20bf7 100644 --- a/scripts/utilities/letter-test-data/src/cli/index.ts +++ b/scripts/utilities/letter-test-data/src/cli/index.ts @@ -1,10 +1,13 @@ import { hideBin } from "yargs/helpers"; -import yargs from 'yargs'; +import yargs from "yargs"; import { LetterStatusType } from "@internal/datastore/src/types"; -import { randomUUID } from "crypto"; -import { createLetter, createLetterDto } from "../helpers/create_letter_helpers"; -import { createLetterRepository } from "../infrastructure/letter-repo-factory"; -import { uploadFile } from "../helpers/s3_helpers"; +import { randomUUID } from "node:crypto"; +import { + createLetter, + createLetterDto, +} from "../helpers/create-letter-helpers"; +import createLetterRepository from "../infrastructure/letter-repo-factory"; +import uploadFile from "../helpers/s3-helpers"; async function main() { await yargs(hideBin(process.argv)) @@ -60,17 +63,15 @@ async function main() { }, }, async (argv) => { - const supplierId = argv.supplierId; - const letterId = argv.letterId ? argv.letterId : randomUUID(); + const { supplierId } = argv; + const letterId = argv.letterId ?? randomUUID(); const bucketName = `nhs-${argv.awsAccountId}-eu-west-2-${argv.environment}-supapi-test-letters`; const targetFilename = `${letterId}.pdf`; - const groupId = argv.groupId ? argv.groupId : randomUUID(); - const specificationId = argv.specificationId - ? argv.specificationId - : randomUUID(); - const status = argv.status; - const environment = argv.environment; - const ttlHours = argv.ttlHours; + const groupId = argv.groupId ?? randomUUID(); + const specificationId = argv.specificationId ?? randomUUID(); + const { status } = argv; + const { environment } = argv; + const { ttlHours } = argv; const letterRepository = createLetterRepository(environment, ttlHours); createLetter({ @@ -114,7 +115,7 @@ async function main() { demandOption: false, default: 336, }, - "count": { + count: { type: "number", demandOption: true, }, @@ -137,41 +138,44 @@ async function main() { }, }, async (argv) => { - // set batch ID const batchId = randomUUID(); // parse args - const supplierId = argv.supplierId; - const groupId = argv.groupId ? argv.groupId : randomUUID(); - const specificationId = argv.specificationId - ? argv.specificationId - : randomUUID(); - const status = argv.status; - const environment = argv.environment; - const ttlHours = argv.ttlHours; + const { supplierId } = argv; + const groupId = argv.groupId ?? randomUUID(); + const specificationId = argv.specificationId ?? randomUUID(); + const { status } = argv; + const { environment } = argv; + const { ttlHours } = argv; const letterRepository = createLetterRepository(environment, ttlHours); - const count = argv.count; - + const { count } = argv; // Upload a test file for this batch const bucketName = `nhs-${argv.awsAccountId}-eu-west-2-${argv.environment}-supapi-test-letters`; const targetFilename = `${batchId}-${status}.pdf`; const url = `s3://${bucketName}/${batchId}/${targetFilename}`; - await uploadFile(bucketName, batchId, "../../test_letter.pdf", targetFilename); + await uploadFile( + bucketName, + batchId, + "../../test_letter.pdf", + targetFilename, + ); // Create letter DTOs - let letterDtos = []; + const letterDtos = []; for (let i = 0; i < count; i++) { - letterDtos.push(createLetterDto({ - letterId: randomUUID(), - supplierId, - groupId, - specificationId, - status: status as LetterStatusType, - url, - })); - }; + letterDtos.push( + createLetterDto({ + letterId: randomUUID(), + supplierId, + groupId, + specificationId, + status: status as LetterStatusType, + url, + }), + ); + } // Upload Letters await letterRepository.unsafePutLetterBatch(letterDtos); @@ -184,8 +188,8 @@ async function main() { } if (require.main === module) { - main().catch((err) => { - console.error(err); + main().catch((error) => { + console.error(error); process.exitCode = 1; }); } diff --git a/scripts/utilities/letter-test-data/src/helpers/create_letter_helpers.ts b/scripts/utilities/letter-test-data/src/helpers/create-letter-helpers.ts similarity index 94% rename from scripts/utilities/letter-test-data/src/helpers/create_letter_helpers.ts rename to scripts/utilities/letter-test-data/src/helpers/create-letter-helpers.ts index f1a75cac..3dd4824c 100644 --- a/scripts/utilities/letter-test-data/src/helpers/create_letter_helpers.ts +++ b/scripts/utilities/letter-test-data/src/helpers/create-letter-helpers.ts @@ -1,9 +1,9 @@ import { - LetterRepository, Letter, + LetterRepository, LetterStatusType, } from "@internal/datastore"; -import { uploadFile } from "./s3_helpers"; +import uploadFile from "./s3-helpers"; export async function createLetter(params: { letterId: string; @@ -44,7 +44,7 @@ export async function createLetter(params: { updatedAt: new Date().toISOString(), source: "/data-plane/letter-rendering/letter-test-data", subject: `supplier-api/letter-test-data/${letterId}`, - billingRef: specificationId + billingRef: specificationId, }; const letterRecord = await letterRepository.putLetter(letter); @@ -73,7 +73,7 @@ export function createLetterDto(params: { updatedAt: new Date().toISOString(), source: "/data-plane/letter-rendering/letter-test-data", subject: `supplier-api/letter-test-data/${letterId}`, - billingRef: specificationId + billingRef: specificationId, }; return letter; diff --git a/scripts/utilities/letter-test-data/src/helpers/s3_helpers.ts b/scripts/utilities/letter-test-data/src/helpers/s3-helpers.ts similarity index 53% rename from scripts/utilities/letter-test-data/src/helpers/s3_helpers.ts rename to scripts/utilities/letter-test-data/src/helpers/s3-helpers.ts index 89ef72a4..b88bbf74 100644 --- a/scripts/utilities/letter-test-data/src/helpers/s3_helpers.ts +++ b/scripts/utilities/letter-test-data/src/helpers/s3-helpers.ts @@ -1,9 +1,13 @@ -import { S3Client, PutObjectCommand } from "@aws-sdk/client-s3"; -import { readFileSync } from "fs"; -import path from "path"; +import { PutObjectCommand, S3Client } from "@aws-sdk/client-s3"; +import { readFileSync } from "node:fs"; +import path from "node:path"; - -export async function uploadFile(bucketName: string, supplierId: string, sourceFilename: string, targetFilename: string) { +export default async function uploadFile( + bucketName: string, + supplierId: string, + sourceFilename: string, + targetFilename: string, +) { try { const s3 = new S3Client(); const filePath = path.join(__dirname, sourceFilename); @@ -18,7 +22,8 @@ export async function uploadFile(bucketName: string, supplierId: string, sourceF const command = new PutObjectCommand(uploadParams); return await s3.send(command); - } catch (err) { - console.error("Error uploading file:", err); + } catch (error) { + console.error("Error uploading file:", error); + throw error; } } diff --git a/scripts/utilities/letter-test-data/src/infrastructure/letter-repo-factory.ts b/scripts/utilities/letter-test-data/src/infrastructure/letter-repo-factory.ts index e0060337..c6440bf1 100644 --- a/scripts/utilities/letter-test-data/src/infrastructure/letter-repo-factory.ts +++ b/scripts/utilities/letter-test-data/src/infrastructure/letter-repo-factory.ts @@ -1,9 +1,12 @@ -import { DynamoDBClient } from '@aws-sdk/client-dynamodb'; -import { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb'; -import { pino } from 'pino'; -import { LetterRepository } from '@internal/datastore'; +import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; +import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb"; +import { pino } from "pino"; +import { LetterRepository } from "@internal/datastore"; -export function createLetterRepository(environment: string, ttlHours:number): LetterRepository { +export default function createLetterRepository( + environment: string, + ttlHours: number, +): LetterRepository { const ddbClient = new DynamoDBClient({}); const docClient = DynamoDBDocumentClient.from(ddbClient); const log = pino(); diff --git a/scripts/utilities/supplier-data/jest.config.ts b/scripts/utilities/supplier-data/jest.config.ts index f2972c27..4bb3369a 100644 --- a/scripts/utilities/supplier-data/jest.config.ts +++ b/scripts/utilities/supplier-data/jest.config.ts @@ -1,7 +1,7 @@ -import type { Config } from 'jest'; +import type { Config } from "jest"; export const baseJestConfig: Config = { - preset: 'ts-jest', + preset: "ts-jest", // Automatically clear mock calls, instances, contexts and results before every test clearMocks: true, @@ -10,10 +10,10 @@ export const baseJestConfig: Config = { collectCoverage: true, // The directory where Jest should output its coverage files - coverageDirectory: './.reports/unit/coverage', + coverageDirectory: "./.reports/unit/coverage", // Indicates which provider should be used to instrument code for coverage - coverageProvider: 'babel', + coverageProvider: "babel", coverageThreshold: { global: { @@ -24,37 +24,37 @@ export const baseJestConfig: Config = { }, }, - coveragePathIgnorePatterns: ['/__tests__/'], - transform: { '^.+\\.ts$': 'ts-jest' }, - testPathIgnorePatterns: ['.build'], - testMatch: ['**/?(*.)+(spec|test).[jt]s?(x)'], + coveragePathIgnorePatterns: ["/__tests__/"], + transform: { "^.+\\.ts$": "ts-jest" }, + testPathIgnorePatterns: [".build"], + testMatch: ["**/?(*.)+(spec|test).[jt]s?(x)"], // Use this configuration option to add custom reporters to Jest reporters: [ - 'default', + "default", [ - 'jest-html-reporter', + "jest-html-reporter", { - pageTitle: 'Test Report', - outputPath: './.reports/unit/test-report.html', + pageTitle: "Test Report", + outputPath: "./.reports/unit/test-report.html", includeFailureMsg: true, }, ], ], // The test environment that will be used for testing - testEnvironment: 'jsdom', + testEnvironment: "jsdom", }; const utilsJestConfig = { ...baseJestConfig, - testEnvironment: 'node', + testEnvironment: "node", coveragePathIgnorePatterns: [ ...(baseJestConfig.coveragePathIgnorePatterns ?? []), - 'cli/index.ts', - 'suppliers-repo-factory.ts', + "cli/index.ts", + "suppliers-repo-factory.ts", ], }; diff --git a/scripts/utilities/supplier-data/src/cli/index.ts b/scripts/utilities/supplier-data/src/cli/index.ts index 3efab279..bda349ed 100644 --- a/scripts/utilities/supplier-data/src/cli/index.ts +++ b/scripts/utilities/supplier-data/src/cli/index.ts @@ -1,10 +1,6 @@ import { hideBin } from "yargs/helpers"; -import yargs from 'yargs'; -import { LetterStatusType } from "@internal/datastore/src/types"; -import { randomUUID } from "crypto"; -import { createSupplierRepository } from "../infrastructure/suppliers-repo-factory"; - - +import yargs from "yargs"; +import createSupplierRepository from "../infrastructure/suppliers-repo-factory"; async function main() { await yargs(hideBin(process.argv)) @@ -16,35 +12,32 @@ async function main() { type: "string", demandOption: true, }, - "id": { + id: { type: "string", demandOption: true, }, - "name": { + name: { type: "string", demandOption: true, }, - "apimId": { + apimId: { type: "string", demandOption: true, }, status: { type: "string", demandOption: true, - choices: [ - "ENABLED", - "DISABLED" - ], + choices: ["ENABLED", "DISABLED"], }, }, async (argv) => { // parse args - const id = argv.id; - const name = argv.name; - const apimId = argv.apimId; + const { id } = argv; + const { name } = argv; + const { apimId } = argv; const status = argv.status as "ENABLED" | "DISABLED"; - const environment = argv.environment; + const { environment } = argv; const supplierRepository = createSupplierRepository(environment); @@ -56,13 +49,13 @@ async function main() { }); console.log(`PUT successful ${JSON.stringify(putResult)}`); - } + }, ) .command( "get-supplier-by-id", "Get a supplier by their Supplier ID", { - "id": { + id: { type: "string", demandOption: true, }, @@ -72,9 +65,8 @@ async function main() { }, }, async (argv) => { - - const id = argv.id; - const environment = argv.environment; + const { id } = argv; + const { environment } = argv; const supplierRepository = createSupplierRepository(environment); @@ -87,7 +79,7 @@ async function main() { "get-supplier-by-apim-id", "Get a supplier by their APIM ID", { - "apimId": { + apimId: { type: "string", demandOption: true, }, @@ -97,9 +89,8 @@ async function main() { }, }, async (argv) => { - - const apimId = argv.apimId; - const environment = argv.environment; + const { apimId } = argv; + const { environment } = argv; const supplierRepository = createSupplierRepository(environment); @@ -113,8 +104,8 @@ async function main() { } if (require.main === module) { - main().catch((err) => { - console.error(err); + main().catch((error) => { + console.error(error); process.exitCode = 1; }); } diff --git a/scripts/utilities/supplier-data/src/infrastructure/suppliers-repo-factory.ts b/scripts/utilities/supplier-data/src/infrastructure/suppliers-repo-factory.ts index 3bddc616..59ce4c3a 100644 --- a/scripts/utilities/supplier-data/src/infrastructure/suppliers-repo-factory.ts +++ b/scripts/utilities/supplier-data/src/infrastructure/suppliers-repo-factory.ts @@ -1,9 +1,11 @@ -import { DynamoDBClient } from '@aws-sdk/client-dynamodb'; -import { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb'; -import { pino } from 'pino'; -import { SupplierRepository } from '@internal/datastore'; +import { DynamoDBClient } from "@aws-sdk/client-dynamodb"; +import { DynamoDBDocumentClient } from "@aws-sdk/lib-dynamodb"; +import { pino } from "pino"; +import { SupplierRepository } from "@internal/datastore"; -export function createSupplierRepository(environment: string): SupplierRepository { +export default function createSupplierRepository( + environment: string, +): SupplierRepository { const ddbClient = new DynamoDBClient({}); const docClient = DynamoDBDocumentClient.from(ddbClient); const log = pino(); diff --git a/tests/component-tests/apiGateway-tests/get-letter-status.spec.ts b/tests/component-tests/apiGateway-tests/get-letter-status.spec.ts index c2a12bf9..aa5d475c 100644 --- a/tests/component-tests/apiGateway-tests/get-letter-status.spec.ts +++ b/tests/component-tests/apiGateway-tests/get-letter-status.spec.ts @@ -30,7 +30,7 @@ test.describe("API Gateway Tests to Verify Get Letter Status Endpoint", () => { `${baseUrl}/${SUPPLIER_LETTERS}/${letter.id}`, { headers, - } + }, ); const responseBody = await response.json(); diff --git a/tests/component-tests/apiGateway-tests/testCases/create-mi.ts b/tests/component-tests/apiGateway-tests/testCases/create-mi.ts index f7f0b222..e3f60db9 100644 --- a/tests/component-tests/apiGateway-tests/testCases/create-mi.ts +++ b/tests/component-tests/apiGateway-tests/testCases/create-mi.ts @@ -1,70 +1,61 @@ - - - export type MiRequestBody = { data: { type: string; attributes: { - groupId: string; - lineItem: string; - quantity: number; - specificationId: string; - stockRemaining: number; - timestamp: string; + groupId: string; + lineItem: string; + quantity: number; + specificationId: string; + stockRemaining: number; + timestamp: string; }; }; }; -export function miValidRequest() : MiRequestBody{ - let requestBody: MiRequestBody; - - requestBody = { +export function miValidRequest(): MiRequestBody { + return { data: { -  attributes: { - groupId: 'group123', - lineItem: 'envelope-business-standard', + attributes: { + groupId: "group123", + lineItem: "envelope-business-standard", quantity: 10, - specificationId: 'Test-Spec-Id', + specificationId: "Test-Spec-Id", stockRemaining: 100, timestamp: new Date().toISOString(), }, - type: 'ManagementInformation', - }}; - return requestBody; + type: "ManagementInformation", + }, + }; } -export function miInvalidRequest() : MiRequestBody{ - let requestBody: MiRequestBody; - - requestBody = { +export function miInvalidRequest(): MiRequestBody { + return { data: { -  attributes: { - groupId: 'group123', - lineItem: 'envelope-business-standard', + attributes: { + groupId: "group123", + lineItem: "envelope-business-standard", quantity: 10, - specificationId: 'Test-Spec-Id', + specificationId: "Test-Spec-Id", stockRemaining: 100, timestamp: new Date().toISOString(), }, - type: '?', - }}; - return requestBody; + type: "?", + }, + }; } -export function miInvalidDateRequest() : MiRequestBody{ - let requestBody: MiRequestBody; - - requestBody = { +export function miInvalidDateRequest(): MiRequestBody { + return { data: { -  attributes: { - groupId: 'group123', - lineItem: 'envelope-business-standard', + attributes: { + groupId: "group123", + lineItem: "envelope-business-standard", quantity: 10, - specificationId: 'Test-Spec-Id', + specificationId: "Test-Spec-Id", stockRemaining: 100, - timestamp: '2021-10-28T', + timestamp: "2021-10-28T", }, - type: 'ManagementInformation', - }}; - return requestBody; + type: "ManagementInformation", + }, + }; } diff --git a/tests/component-tests/apiGateway-tests/testCases/update-letter-status.ts b/tests/component-tests/apiGateway-tests/testCases/update-letter-status.ts index 368711a3..10a9184f 100644 --- a/tests/component-tests/apiGateway-tests/testCases/update-letter-status.ts +++ b/tests/component-tests/apiGateway-tests/testCases/update-letter-status.ts @@ -29,23 +29,19 @@ export type PatchMessageResponseBody = { }; export function patchRequestHeaders(): RequestHeaders { - let requestHeaders: RequestHeaders; - requestHeaders = { + return { headerauth1: process.env.HEADERAUTH || "", "NHSD-Supplier-ID": SUPPLIERID, "NHSD-Correlation-ID": "12344", "X-Request-ID": "requestId1", }; - return requestHeaders; } export function patchValidRequestBody( id: string, - status: string + status: string, ): PatchMessageRequestBody { - let requestBody: PatchMessageRequestBody; - - requestBody = { + return { data: { attributes: { status, @@ -54,16 +50,13 @@ export function patchValidRequestBody( id, }, }; - return requestBody; } export function patchFailureRequestBody( id: string, - status: string + status: string, ): PatchMessageRequestBody { - let requestBody: PatchMessageRequestBody; - - requestBody = { + return { data: { attributes: { status, @@ -74,12 +67,10 @@ export function patchFailureRequestBody( id, }, }; - return requestBody; } export function patch400ErrorResponseBody(): ErrorMessageBody { - let responseBody: ErrorMessageBody; - responseBody = { + return { errors: [ { id: "12344", @@ -94,12 +85,10 @@ export function patch400ErrorResponseBody(): ErrorMessageBody { }, ], }; - return responseBody; } export function patch500ErrorResponseBody(id: string): ErrorMessageBody { - let responseBody: ErrorMessageBody; - responseBody = { + return { errors: [ { id: "12344", @@ -114,5 +103,4 @@ export function patch500ErrorResponseBody(id: string): ErrorMessageBody { }, ], }; - return responseBody; } diff --git a/tests/component-tests/apiGateway-tests/testCases/update-multiple-letter-status.ts b/tests/component-tests/apiGateway-tests/testCases/update-multiple-letter-status.ts index 117e8838..733cc77b 100644 --- a/tests/component-tests/apiGateway-tests/testCases/update-multiple-letter-status.ts +++ b/tests/component-tests/apiGateway-tests/testCases/update-multiple-letter-status.ts @@ -7,31 +7,25 @@ import { import { SupplierApiLetters } from "../../../helpers/generate-fetch-test-data"; export function postLettersRequestHeaders(): RequestHeaders { - let requestHeaders: RequestHeaders; - requestHeaders = { + return { "NHSD-Supplier-ID": SUPPLIERID, "NHSD-Correlation-ID": "12344", "X-Request-ID": "requestId1", }; - return requestHeaders; } export function postLettersInvalidRequestHeaders(): RequestHeaders { - let requestHeaders: RequestHeaders; - requestHeaders = { + return { "NHSD-Supplier-ID": SUPPLIERID, "NHSD-Correlation-ID": "12344", // Request Id is missing }; - return requestHeaders; } export function postValidRequestBody( letters: SupplierApiLetters[], ): PostMessageRequestBody { - let requestBody: PostMessageRequestBody; - - requestBody = { + return { data: [ { type: "Letter", @@ -65,15 +59,12 @@ export function postValidRequestBody( }, ], }; - return requestBody; } export function postInvalidStatusRequestBody( letters: SupplierApiLetters[], ): PostMessageRequestBody { - let requestBody: PostMessageRequestBody; - - requestBody = { + return { data: [ { type: "Letter", @@ -91,15 +82,12 @@ export function postInvalidStatusRequestBody( }, ], }; - return requestBody; } export function postDuplicateIDRequestBody( letters: SupplierApiLetters[], ): PostMessageRequestBody { - let requestBody: PostMessageRequestBody; - - requestBody = { + return { data: [ { type: "Letter", @@ -117,13 +105,10 @@ export function postDuplicateIDRequestBody( }, ], }; - return requestBody; } export function postInvalidStatusResponseBody(): ErrorMessageBody { - let responseBody: ErrorMessageBody; - - responseBody = { + return { errors: [ { id: "12344", @@ -138,13 +123,10 @@ export function postInvalidStatusResponseBody(): ErrorMessageBody { }, ], }; - return responseBody; } export function postDuplicateIDResponseBody(): ErrorMessageBody { - let responseBody: ErrorMessageBody; - - responseBody = { + return { errors: [ { id: "12344", @@ -160,13 +142,10 @@ export function postDuplicateIDResponseBody(): ErrorMessageBody { }, ], }; - return responseBody; } export function post500ErrorResponseBody(): ErrorMessageBody { - let responseBody: ErrorMessageBody; - - responseBody = { + return { errors: [ { id: "12344", @@ -181,5 +160,4 @@ export function post500ErrorResponseBody(): ErrorMessageBody { }, ], }; - return responseBody; } diff --git a/tests/component-tests/apiGateway-tests/update-letter-status.spec.ts b/tests/component-tests/apiGateway-tests/update-letter-status.spec.ts index 371dbba2..bd90cb26 100644 --- a/tests/component-tests/apiGateway-tests/update-letter-status.spec.ts +++ b/tests/component-tests/apiGateway-tests/update-letter-status.spec.ts @@ -45,7 +45,7 @@ test.describe("API Gateway Tests to Verify Patch Status Endpoint", () => { { headers, data: body, - } + }, ); expect(response.status()).toBe(202); @@ -72,7 +72,7 @@ test.describe("API Gateway Tests to Verify Patch Status Endpoint", () => { { headers, data: body, - } + }, ); expect(response.status()).toBe(202); @@ -92,7 +92,7 @@ test.describe("API Gateway Tests to Verify Patch Status Endpoint", () => { { headers, data: body, - } + }, ); const responseBody = await response.json(); @@ -113,7 +113,7 @@ test.describe("API Gateway Tests to Verify Patch Status Endpoint", () => { { headers, data: body, - } + }, ); const responseBody = await response.json(); @@ -133,7 +133,7 @@ test.describe("API Gateway Tests to Verify Patch Status Endpoint", () => { { headers, data: body, - } + }, ); const responseBody = await response.json(); diff --git a/tests/config/reporters.ts b/tests/config/reporters.ts index 913e09c3..6579d8bd 100644 --- a/tests/config/reporters.ts +++ b/tests/config/reporters.ts @@ -1,8 +1,7 @@ import type { ReporterDescription } from "@playwright/test"; -import path from "path"; +import path from "node:path"; const resultsDir = process.env.RESULTS_DIR || "results"; -const reportsDir = process.env.REPORTS_DIR || "reports"; export function getReporters(allureFolder: string) { return [ diff --git a/tests/config/sandbox.config.ts b/tests/config/sandbox.config.ts index 79fd5c9a..6f63788b 100644 --- a/tests/config/sandbox.config.ts +++ b/tests/config/sandbox.config.ts @@ -1,7 +1,7 @@ import type { PlaywrightTestConfig } from "@playwright/test"; +import path from "node:path"; import { config as baseConfig } from "./playwright.base.config"; import { getReporters } from "./reporters"; -import path from "path"; const localConfig: PlaywrightTestConfig = { /* Reporter to use. See https://playwright.dev/docs/test-reporters */ diff --git a/tests/helpers/generate-fetch-test-data.ts b/tests/helpers/generate-fetch-test-data.ts index 7e7eee77..8c3d7f67 100644 --- a/tests/helpers/generate-fetch-test-data.ts +++ b/tests/helpers/generate-fetch-test-data.ts @@ -29,11 +29,12 @@ export interface SupplierApiLetters { ttl: string; reasonText: string; status: string; + source: string; } export async function createTestData( supplierId: string, - count?: number + count?: number, ): Promise { await runCreateLetter({ filter: "nhs-notify-supplier-api-letter-test-data-utility", @@ -50,7 +51,7 @@ export async function createTestData( export const getLettersBySupplier = async ( supplierId: string, status: string, - limit: number + limit: number, ) => { const supplierStatus = `${supplierId}#${status}`; const params = { @@ -78,13 +79,13 @@ export const deleteLettersBySupplier = async (id: string) => { TableName: LETTERSTABLENAME, Key: { supplierId: SUPPLIERID, id }, ReturnValues: "ALL_OLD", - }) + }), ); return resp.Attributes; }; export async function checkSupplierExists( - supplierId: string + supplierId: string, ): Promise { try { const params = { diff --git a/tests/helpers/generate_fetch_testData.ts b/tests/helpers/generate_fetch_testData.ts deleted file mode 100644 index 4182ebe1..00000000 --- a/tests/helpers/generate_fetch_testData.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { envName, LETTERSTABLENAME, SUPPLIERID } from "../constants/api_constants"; -import { runCreateLetter } from "./pnpmHelpers"; -import { DynamoDBClient } from '@aws-sdk/client-dynamodb'; -import { DeleteCommand, DynamoDBDocumentClient, QueryCommand } from '@aws-sdk/lib-dynamodb'; - -const ddb = new DynamoDBClient({}); -const docClient = DynamoDBDocumentClient.from(ddb); - -export interface SupplierApiLetters { - supplierId: string, - specificationId: string, - supplierStatus: string, - createdAt: string, - supplierStatusSk: string, - updatedAt: string, - groupId: string, - reasonCode: string, - id: string, - url: string, - ttl: string, - reasonText: string, - status: string, - source: string -}; - -export async function createTestData(supplierId: string): Promise { - - await runCreateLetter({ - filter: 'nhs-notify-supplier-api-data-generator', - supplierId: supplierId, - environment: envName, - awsAccountId: '820178564574', - groupId: 'TestGroupID', - specificationId: 'TestSpecificationID', - status: 'PENDING', - count: 1, - }); -}; - -export const getLettersBySupplier = async(supplierId: string, status: string, limit: number) => { - - const supplierStatus = `${supplierId}#${status}`; - const params = { - TableName: LETTERSTABLENAME, - IndexName: 'supplierStatus-index', - KeyConditionExpression: 'supplierStatus = :supplierStatus', - ProjectionExpression: - 'id, specificationId, groupId, reasonCode, reasonText', - ExpressionAttributeValues: { - ':supplierStatus': supplierStatus, - }, - Limit: limit, - }; - - const { Items } = await docClient.send(new QueryCommand(params)); - if (!Items || Items.length === 0) { - throw new Error(`Unexpectedly found no data found for ${supplierId}.`); - } - return Items as SupplierApiLetters[]; -}; - -export const deleteLettersBySupplier = async(id: string) => { - const resp = await docClient.send( - new DeleteCommand({ - TableName: LETTERSTABLENAME, - Key: { supplierId: SUPPLIERID, id }, - ReturnValues: 'ALL_OLD', - }) - ) - return resp.Attributes; -} diff --git a/tests/helpers/pnpm-helpers.ts b/tests/helpers/pnpm-helpers.ts index d71b1d18..5351f92e 100644 --- a/tests/helpers/pnpm-helpers.ts +++ b/tests/helpers/pnpm-helpers.ts @@ -29,7 +29,7 @@ export async function runCreateLetter(options: { const workspaceRoot = path.resolve( __dirname, - "../../scripts/utilities/letter-test-data" + "../../scripts/utilities/letter-test-data", ); const cmd = process.platform === "win32" ? "npm.cmd" : "npm"; const root = path.resolve(workspaceRoot); @@ -60,7 +60,6 @@ export async function runCreateLetter(options: { ]; await new Promise((resolve, reject) => { - let output = ""; const child = spawn(cmd, args, { stdio: "inherit", cwd: root, @@ -68,12 +67,11 @@ export async function runCreateLetter(options: { }); child.stdout?.on("id", (id) => { const text = id.toString(); - output += text; process.stdout.write(text); }); child.on("close", (code) => - code === 0 ? resolve() : reject(new Error(`pnpm exited with ${code}`)) + code === 0 ? resolve() : reject(new Error(`pnpm exited with ${code}`)), ); child.on("error", reject); }); @@ -87,11 +85,11 @@ export async function createSupplierData(options: { environment: string; status: string; }) { - const { apimId, environment, name, status, supplierId, filter } = options; + const { apimId, environment, filter, name, status, supplierId } = options; const workspaceRoot = path.resolve( __dirname, - "../../scripts/utilities/supplier-data" + "../../scripts/utilities/supplier-data", ); const cmd = process.platform === "win32" ? "npm.cmd" : "npm"; const root = path.resolve(workspaceRoot); @@ -118,7 +116,6 @@ export async function createSupplierData(options: { ]; await new Promise((resolve, reject) => { - let output = ""; const child = spawn(cmd, args, { stdio: "inherit", cwd: root, @@ -126,12 +123,11 @@ export async function createSupplierData(options: { }); child.stdout?.on("id", (id) => { const text = id.toString(); - output += text; process.stdout.write(text); }); child.on("close", (code) => - code === 0 ? resolve() : reject(new Error(`pnpm exited with ${code}`)) + code === 0 ? resolve() : reject(new Error(`pnpm exited with ${code}`)), ); child.on("error", reject); }); diff --git a/tests/helpers/validate-json-schema.ts b/tests/helpers/validate-json-schema.ts index 82dd7e80..b3987d99 100644 --- a/tests/helpers/validate-json-schema.ts +++ b/tests/helpers/validate-json-schema.ts @@ -19,7 +19,7 @@ export default async function validateApiResponse( method: string, pathVar: string, status: number, - body: any + body: any, ): Promise { const openapiDoc = await import(paths); @@ -36,7 +36,7 @@ export default async function validateApiResponse( operation.responses[status] || operation.responses.default; if (!responseSchema) { throw new Error( - `No schema defined for status ${status} at ${method.toUpperCase()} ${pathVar}` + `No schema defined for status ${status} at ${method.toUpperCase()} ${pathVar}`, ); } diff --git a/tests/mtls/mtls-test.spec.ts b/tests/mtls/mtls-test.spec.ts index b3fbee6d..256b3c96 100644 --- a/tests/mtls/mtls-test.spec.ts +++ b/tests/mtls/mtls-test.spec.ts @@ -1,7 +1,7 @@ -import { test, expect, request, APIRequestContext } from "@playwright/test"; +import { APIRequestContext, expect, request, test } from "@playwright/test"; // Assume you have your constants in a config file -const PROXY_URL = process.env.PROXY_URL; +const { PROXY_URL } = process.env; test("should fail when connecting without client certificate", async () => { let apiContext: APIRequestContext | null = null; @@ -15,15 +15,15 @@ test("should fail when connecting without client certificate", async () => { // Check if request succeeded or failed if (response.ok()) { throw new Error( - `Expected connection failure, but got success with status ${response.status()}` + `Expected connection failure, but got success with status ${response.status()}`, ); } // Assert on the actual error code returned by the gateway // For mTLS, often 401, 403, or 502 depending on infra config expect(response.ok()).toBeFalsy(); - } catch (err: any) { + } catch (error: any) { // If the request truly fails at the TLS layer, Playwright will throw instead - expect(err.message).toMatch(/SSL|certificate|ECONNRESET|socket/i); + expect(error.message).toMatch(/SSL|certificate|ECONNRESET|socket/i); } finally { if (apiContext) { await apiContext.dispose(); diff --git a/tests/sandbox/get-letter-status.spec.ts b/tests/sandbox/get-letter-status.spec.ts index 173b6a1f..52401f71 100644 --- a/tests/sandbox/get-letter-status.spec.ts +++ b/tests/sandbox/get-letter-status.spec.ts @@ -20,7 +20,7 @@ test.describe("Sandbox Tests To Get Letter Status", () => { `${SUPPLIER_API_URL_SANDBOX}/${SUPPLIER_LETTERS}/${id}`, { headers: header, - } + }, ); expect(response.status()).toBe(expectedStatus); diff --git a/tests/sandbox/get-list-of-letters.spec.ts b/tests/sandbox/get-list-of-letters.spec.ts index 4132b40d..624a2227 100644 --- a/tests/sandbox/get-list-of-letters.spec.ts +++ b/tests/sandbox/get-list-of-letters.spec.ts @@ -21,7 +21,7 @@ test.describe("Sandbox Tests To Get List Of Pending Letters ", () => { params: { limit, }, - } + }, ); const res = await response.json(); diff --git a/tests/sandbox/update-letter-status.spec.ts b/tests/sandbox/update-letter-status.spec.ts index 996683a9..dcd724fd 100644 --- a/tests/sandbox/update-letter-status.spec.ts +++ b/tests/sandbox/update-letter-status.spec.ts @@ -20,7 +20,7 @@ test.describe("Sandbox Tests To Update Letter Status", () => { { headers: header, data: body, - } + }, ); const res = await response.json(); diff --git a/tests/sandbox/update-multiple-letter-status.spec.ts b/tests/sandbox/update-multiple-letter-status.spec.ts index c5ebba51..f7e30198 100644 --- a/tests/sandbox/update-multiple-letter-status.spec.ts +++ b/tests/sandbox/update-multiple-letter-status.spec.ts @@ -18,7 +18,7 @@ test.describe("Sandbox Tests To Update Multiple Letter Status", () => { { headers: header, data: body, - } + }, ); expect(response.status()).toBe(expectedStatus); });