diff --git a/services/app-api/jest.config.ts b/services/app-api/jest.config.ts index 762638bbfd..b67f103329 100644 --- a/services/app-api/jest.config.ts +++ b/services/app-api/jest.config.ts @@ -2,7 +2,7 @@ module.exports = { preset: 'ts-jest', testEnvironment: 'node', transform: { - '\\.graphql$': 'jest-raw-loader', + "\\.(gql|graphql)$": "@graphql-tools/jest-transform", }, coverageReporters: [ [ diff --git a/services/app-api/package.json b/services/app-api/package.json index 2ba1025c0a..45aab6a318 100644 --- a/services/app-api/package.json +++ b/services/app-api/package.json @@ -36,7 +36,7 @@ "@aws-sdk/client-ses": "^3.226.0", "@aws-sdk/client-ssm": "^3.226.0", "@aws-sdk/lib-storage": "^3.226.0", - "@launchdarkly/node-server-sdk": "8.1.0", + "@launchdarkly/node-server-sdk": "8.1.1", "@opentelemetry/api": "^1.3.0", "@opentelemetry/core": "^1.9.1", "@opentelemetry/exporter-trace-otlp-http": "^0.35.1", @@ -64,6 +64,7 @@ "zod": "^3.11.6" }, "devDependencies": { + "@graphql-tools/jest-transform": "^2.0.0", "@prisma/client": "^4.6", "@types/archiver": "^5.1.1", "@types/aws-lambda": "^8.10.83", @@ -81,8 +82,7 @@ "eslint-plugin-jest": "^27.0.1", "eslint-plugin-prettier": "^4.0.0", "graphql-tag": "^2.12.5", - "jest": "^27.5.1", - "jest-raw-loader": "^1.0.1", + "jest": "^29.6.2", "lint-staged": "^13.0.1", "prettier": "^2.4.1", "prisma": "^4.6", @@ -96,7 +96,7 @@ "serverless-stack-termination-protection": "^2.0.2", "serverless-webpack": "^5.11.0", "slugify": "^1.6.5", - "ts-jest": "^27.1.4", + "ts-jest": "^29.1.1", "ts-loader": "^9.2.8", "tsconfig-paths-webpack-plugin": "^4.0.0", "typescript": "4.9.5", diff --git a/services/app-api/src/emailer/emails/__snapshots__/newPackageCMSEmail.test.ts.snap b/services/app-api/src/emailer/emails/__snapshots__/newPackageCMSEmail.test.ts.snap index 4d57d403fe..4fda6c5afa 100644 --- a/services/app-api/src/emailer/emails/__snapshots__/newPackageCMSEmail.test.ts.snap +++ b/services/app-api/src/emailer/emails/__snapshots__/newPackageCMSEmail.test.ts.snap @@ -14,6 +14,6 @@ exports[`renders overall email as expected 1`] = `
Submission description: A submitted submission

-View submission +View submission " `; diff --git a/services/app-api/src/emailer/emails/__snapshots__/newPackageStateEmail.test.ts.snap b/services/app-api/src/emailer/emails/__snapshots__/newPackageStateEmail.test.ts.snap index 8c8c733c17..1f2b0ea458 100644 --- a/services/app-api/src/emailer/emails/__snapshots__/newPackageStateEmail.test.ts.snap +++ b/services/app-api/src/emailer/emails/__snapshots__/newPackageStateEmail.test.ts.snap @@ -11,7 +11,7 @@ exports[`renders overall email for a new package with a rate amendment as expect
Submission description: A submitted submission

-View submission +View submission

If you need to make any changes, please contact CMS.

diff --git a/services/app-api/src/emailer/emails/__snapshots__/resubmitPackageCMSEmail.test.ts.snap b/services/app-api/src/emailer/emails/__snapshots__/resubmitPackageCMSEmail.test.ts.snap index bf1a9de0c7..632d740277 100644 --- a/services/app-api/src/emailer/emails/__snapshots__/resubmitPackageCMSEmail.test.ts.snap +++ b/services/app-api/src/emailer/emails/__snapshots__/resubmitPackageCMSEmail.test.ts.snap @@ -7,11 +7,11 @@ exports[`renders overall email as expected 1`] = ` Updated on: 02/01/2022
Changes made: Added more contract details.
Rate names: -