Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Run axe a11y tests in your bun project
bun add bun-axe
Note: Bun currently does not support
extend.expect
, so this API will be changed once it's supported. This example code is based on this workaround.
import { describe, it, expect } from 'bun:test'
import { axe, toHaveNoViolationsFn } from 'bun-axe'
describe("Test", () => {
it("should pass a11y test", async () => {
document.body.innerHTML = `<button>My button</button>`;
const button = document.querySelector('button');
expect(toHaveNoViolationsFn(await axe(button)).pass).toBe(true);
});
})
If you run into an a11y violation, console.log(toHaveNoViolationsFn(await axe(button)).actual)
can be used to see the violations. Until bun supports extend.expect
there is no other great way to get this currently.
Once bun supports extend.expect
you can swap toHaveNoViolationsFn
for toHaveNoViolations
and test like this:
import { describe, it, expect } from 'bun:test'
import { axe, toHaveNoViolationsFn } from 'bun-axe'
describe("Test", () => {
it("should pass a11y test", async () => {
document.body.innerHTML = `<button>My button</button>`;
const button = document.querySelector('button');
expect(await axe(button)).toHaveNoViolations()
});
})
FAQs
Run axe a11y tests in your bun project
The npm package bun-axe receives a total of 0 weekly downloads. As such, bun-axe popularity was classified as not popular.
We found that bun-axe demonstrated a not healthy version release cadence and project activity because the last version was released 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.