Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
eslint-plugin-test-groups
Advanced tools
require-groups-for-tests
Requires return types on lambdas that return object literals.
npm install --save-dev eslint-plugin-test-groups
.eslintrc.yaml:
root: true
parser: "@typescript-eslint/parser"
parserOptions:
project: "./tsconfig.json"
plugins:
- "@typescript-eslint"
- "test-groups" # ← Add this
rules:
# ↓ And this:
"test-groups/require-groups-for-tests":
- error
- groupWhitelist:
- "some-test-group"
- "another-test-group"
/**
* If the 'group' attribute is not declared, then this ESLint rule will return an error.
*
* Furthermore, the 'group' attribute must match one the configured groups for the rule (you define these).
*
* @group some-test-group
*/
describe("Some Tests", () => {
})
Ensures every test is assigned to a group.
Restricting the groups to known values allows you to easily keep your CI pipelines in sync, for example, if you're running tests in parallel and need to list each group individually in your CI config.
The following resources were very useful when writing this plugin:
FAQs
Ensures tests are marked with a '@group' doc comment.
We found that eslint-plugin-test-groups demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.