diff --git a/packages/amqp/package.json b/packages/amqp/package.json index 4c973049..e40b6817 100644 --- a/packages/amqp/package.json +++ b/packages/amqp/package.json @@ -39,13 +39,13 @@ "@message-queue-toolkit/core": "*", "@types/amqplib": "^0.10.5", "@types/node": "^20.12.12", - "@vitest/coverage-v8": "^1.6.0", + "@vitest/coverage-v8": "^2.0.4", "amqplib": "^0.10.4", "awilix": "^10.0.2", "awilix-manager": "^5.4.0", "del-cli": "^5.1.0", "typescript": "^5.5.2", - "vitest": "^1.6.0" + "vitest": "^2.0.4" }, "homepage": "https://github.com/kibertoad/message-queue-toolkit", "repository": { diff --git a/packages/amqp/vitest.config.mts b/packages/amqp/vitest.config.mts index 44db4635..253e240a 100644 --- a/packages/amqp/vitest.config.mts +++ b/packages/amqp/vitest.config.mts @@ -8,6 +8,7 @@ export default defineConfig({ singleThread: true, }, }, + pool: "threads", watch: false, environment: 'node', reporters: ['default'], diff --git a/packages/core/package.json b/packages/core/package.json index 71f6297d..aefb5fbd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -25,7 +25,7 @@ "prepublishOnly": "npm run build:release" }, "dependencies": { - "@lokalise/node-core": "^11.1.0", + "@lokalise/node-core": "^11.2.0", "@message-queue-toolkit/schemas": "^2.1.1", "fast-equals": "^5.0.1", "json-stream-stringify": "^3.1.4", @@ -38,12 +38,12 @@ "@kibertoad/biome-config": "^1.2.1", "@types/node": "^20.12.8", "@types/tmp": "^0.2.6", - "@vitest/coverage-v8": "^1.6.0", + "@vitest/coverage-v8": "^2.0.4", "awilix": "^10.0.2", - "awilix-manager": "^5.2.1", + "awilix-manager": "^5.4.0", "del-cli": "^5.1.0", - "typescript": "^5.5.3", - "vitest": "^1.6.0" + "typescript": "^5.5.4", + "vitest": "^2.0.4" }, "homepage": "https://github.com/kibertoad/message-queue-toolkit", "repository": { diff --git a/packages/s3-payload-store/.prettierignore b/packages/s3-payload-store/.prettierignore new file mode 100644 index 00000000..bd95794d --- /dev/null +++ b/packages/s3-payload-store/.prettierignore @@ -0,0 +1,2 @@ +package-lock.json +dist diff --git a/packages/s3-payload-store/package.json b/packages/s3-payload-store/package.json index f3af00bd..2bbb6b2b 100644 --- a/packages/s3-payload-store/package.json +++ b/packages/s3-payload-store/package.json @@ -38,14 +38,14 @@ "@types/node": "^20.12.12", "@typescript-eslint/eslint-plugin": "^7.9.0", "@typescript-eslint/parser": "^7.9.0", - "@vitest/coverage-v8": "^1.6.0", + "@vitest/coverage-v8": "^2.0.4", "del-cli": "^5.1.0", "eslint": "^8.57.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-vitest": "0.4.1", "prettier": "^3.2.5", "typescript": "^5.5.3", - "vitest": "^1.6.0" + "vitest": "^2.0.4" }, "homepage": "https://github.com/kibertoad/message-queue-toolkit", "repository": { diff --git a/packages/schemas/.prettierignore b/packages/schemas/.prettierignore new file mode 100644 index 00000000..bd95794d --- /dev/null +++ b/packages/schemas/.prettierignore @@ -0,0 +1,2 @@ +package-lock.json +dist diff --git a/packages/sns/.prettierignore b/packages/sns/.prettierignore new file mode 100644 index 00000000..bd95794d --- /dev/null +++ b/packages/sns/.prettierignore @@ -0,0 +1,2 @@ +package-lock.json +dist diff --git a/packages/sns/package.json b/packages/sns/package.json index 86590040..d0eb7cf5 100644 --- a/packages/sns/package.json +++ b/packages/sns/package.json @@ -30,8 +30,8 @@ "zod": "^3.23.8" }, "peerDependencies": { - "@aws-sdk/client-sns": "^3.598.0", - "@aws-sdk/client-sqs": "^3.598.0", + "@aws-sdk/client-sns": "^3.614.0", + "@aws-sdk/client-sqs": "^3.614.0", "@message-queue-toolkit/core": "^15.0.0", "@message-queue-toolkit/schemas": "^2.0.0", "@message-queue-toolkit/sqs": "^17.0.0" @@ -46,7 +46,7 @@ "@types/node": "^20.14.10", "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", - "@vitest/coverage-v8": "^1.6.0", + "@vitest/coverage-v8": "^2.0.4", "awilix": "^10.0.1", "awilix-manager": "^5.1.0", "del-cli": "^5.1.0", @@ -55,7 +55,7 @@ "eslint-plugin-vitest": "0.4.1", "prettier": "^3.2.5", "typescript": "^5.5.3", - "vitest": "^1.6.0" + "vitest": "^2.0.4" }, "homepage": "https://github.com/kibertoad/message-queue-toolkit", "repository": { diff --git a/packages/sns/vitest.config.mts b/packages/sns/vitest.config.mts index 0cd4503f..e73e97ac 100644 --- a/packages/sns/vitest.config.mts +++ b/packages/sns/vitest.config.mts @@ -8,12 +8,20 @@ export default defineConfig({ singleThread: true, }, }, + pool: 'threads', watch: false, environment: 'node', reporters: ['default'], coverage: { + provider: 'v8', include: ['lib/**/*.ts'], - exclude: ['lib/**/*.spec.ts', 'lib/**/*.test.ts', 'test/**/*.*', 'lib/types/**/*.*'], + exclude: [ + 'lib/**/*.spec.ts', + 'lib/**/*.test.ts', + 'test/**/*.*', + 'lib/types/**/*.*', + 'lib/sns/fakes', + ], reporter: ['text'], all: true, thresholds: { diff --git a/packages/sqs/package.json b/packages/sqs/package.json index 694cdba4..5398f8c9 100644 --- a/packages/sqs/package.json +++ b/packages/sqs/package.json @@ -25,12 +25,12 @@ "prepublishOnly": "npm run build:release" }, "dependencies": { - "@lokalise/node-core": "^11.1.0", + "@lokalise/node-core": "^11.2.0", "sqs-consumer": "^11.0.1", "zod": "^3.23.8" }, "peerDependencies": { - "@aws-sdk/client-sqs": "^3.598.0", + "@aws-sdk/client-sqs": "^3.614.0", "@message-queue-toolkit/core": "^15.0.0" }, "devDependencies": { @@ -41,12 +41,12 @@ "@message-queue-toolkit/core": "*", "@message-queue-toolkit/s3-payload-store": "*", "@types/node": "^20.14.10", - "@vitest/coverage-v8": "^1.6.0", + "@vitest/coverage-v8": "^2.0.4", "awilix": "^10.0.1", "awilix-manager": "^5.1.0", "del-cli": "^5.1.0", "typescript": "^5.5.3", - "vitest": "^1.6.0" + "vitest": "^2.0.4" }, "homepage": "https://github.com/kibertoad/message-queue-toolkit", "repository": { diff --git a/packages/sqs/test/consumers/SqsPermisssionConsumer.deadLetterQueue.spec.ts b/packages/sqs/test/consumers/SqsPermisssionConsumer.deadLetterQueue.spec.ts index 95e22a19..b53c2fcd 100644 --- a/packages/sqs/test/consumers/SqsPermisssionConsumer.deadLetterQueue.spec.ts +++ b/packages/sqs/test/consumers/SqsPermisssionConsumer.deadLetterQueue.spec.ts @@ -432,6 +432,6 @@ describe('SqsPermissionConsumer - deadLetterQueue', () => { expect(messageBody._internalNumberOfRetries).toBe(1) dlqConsumer.stop() - }) + }, 7000) }) }) diff --git a/packages/sqs/vitest.config.mts b/packages/sqs/vitest.config.mts index d0302c2b..c33d002e 100644 --- a/packages/sqs/vitest.config.mts +++ b/packages/sqs/vitest.config.mts @@ -8,19 +8,21 @@ export default defineConfig({ singleThread: true, }, }, + pool: "threads", watch: false, environment: 'node', reporters: ['default'], coverage: { + provider: 'v8', include: ['lib/**/*.ts'], exclude: ['lib/**/*.spec.ts', 'lib/**/*.test.ts', 'test/**/*.*', 'lib/types/**/*.*'], reporter: ['text'], all: true, thresholds: { - lines: 90, + lines: 89, functions: 100, branches: 74, - statements: 90, + statements: 89, }, }, },