diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0610c55..582175c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3 + uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.1.0 with: lint: true license-check: true diff --git a/.gitignore b/.gitignore index 2b6aed4..143b73f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,9 @@ lerna-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json +# Clinic +.clinic + # Runtime data pids *.pid @@ -135,18 +138,15 @@ dist # macOS files .DS_Store -# Clinic -.clinic - # lock files -bun.lockb package-lock.json pnpm-lock.yaml yarn.lock +bun.lockb # editor files .vscode .idea -#tap files +# tap files .tap/ diff --git a/.taprc b/.taprc new file mode 100644 index 0000000..343ddd5 --- /dev/null +++ b/.taprc @@ -0,0 +1,3 @@ +disable-coverage: true +files: + - test/**/*.test.js diff --git a/package.json b/package.json index c95b5a3..cc84598 100644 --- a/package.json +++ b/package.json @@ -33,34 +33,34 @@ "scripts": { "lint": "eslint .", "test": "npm run test:unit && npm run test:typescript", - "test:unit": "tap -J -R specy --no-coverage test/*test.js", + "test:unit": "tap", "test:typescript": "tsd", "performance": "npm run lint && node performanceTest/test", "preversion": "npm run test && git push", "postversion": "git push && git push --tags" }, "devDependencies": { - "@fastify/multipart": "8.3.0", + "@fastify/multipart": "^9.0.0-pre.fv5.1", "@fastify/pre-commit": "^2.1.0", "@h4ad/serverless-adapter": "4.2.1", "@types/aws-lambda": "8.10.141", "aws-serverless-express": "^3.4.0", "aws-serverless-fastify": "^3.0.6", "benchmark": "^2.1.4", - "eslint": "^8.56.0", + "eslint": "^8.57.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-n": "^16.6.2", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-standard": "^5.0.0", - "fastify": "^4.26.0", + "fastify": "^5.0.0-alpha.3", "serverless-http": "^3.2.0", - "tap": "^16.3.9", + "tap": "18.7.1", "tsd": "^0.31.0" }, "overrides": { "aws-serverless-fastify": { - "fastify": "^4.26.0" + "fastify": "^5.0.0-alpha.3" } }, "publishConfig": { diff --git a/test/multipart.test.js b/test/multipart.test.js index a1810dd..95a36df 100644 --- a/test/multipart.test.js +++ b/test/multipart.test.js @@ -93,7 +93,6 @@ test('should parse the multipart form-data successfully given utf8 encoded form app.register(multipart, { attachFieldsToBody: true }) app.post('/test', async (request, reply) => { - console.log(request.body) t.equal(request.body.html.fieldname, 'html') t.equal(request.body.html.encoding, '7bit') t.equal(request.body.html.mimetype, 'text/plain')