Repository navigation
qa: tighten lint/jest, gate CI with audit + Trivy + CodeQL, refresh docs #347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
dafdeb5
1c9dd5e
b92ea8d
e72bfc2
1e4bf2b
2e5ba2e
5b26474
117e59f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,20 @@ | ||
| module.exports = { | ||
| testEnvironment: 'node', | ||
| roots: ['<rootDir>/tests'], | ||
| testMatch: ['**/*.test.js'] | ||
| testMatch: ['**/*.test.js'], | ||
| clearMocks: true, | ||
| restoreMocks: true, | ||
| coverageReporters: ['text-summary', 'lcov', 'html'], | ||
| collectCoverageFrom: [ | ||
| 'src/**/*.js', | ||
| '!src/server.js' | ||
| ], | ||
| coverageThreshold: { | ||
| global: { | ||
| statements: 90, | ||
| branches: 75, | ||
| functions: 90, | ||
| lines: 90 | ||
| } | ||
| } | ||
| }; |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,8 +5,11 @@ | |||||
| "main": "src/server.js", | ||||||
| "scripts": { | ||||||
| "start": "node src/server.js", | ||||||
| "test": "jest --runInBand --coverage", | ||||||
| "test": "jest --runInBand", | ||||||
| "test:unit": "jest --runInBand tests/unit", | ||||||
| "test:integration": "jest --runInBand tests/integration", | ||||||
| "test:watch": "jest --watch", | ||||||
|
||||||
| "test:watch": "jest --watch", | |
| "test:watch": "jest --runInBand --watch", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR description mentions adding a new
codeql.ymlworkflow, but this branch doesn't contain.github/workflows/codeql.ymland this doc now states CodeQL is handled via GitHub's default Code Scanning setup (not a workflow file). Please align the PR description and/or add the intended workflow so reviewers/users aren’t confused about how CodeQL is configured.