Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
baretest
Advanced tools
Readme
Baretest is an extremely simple JavaScript test runner. It has a tiny footprint, near-instant performance, and a brainless API. It makes testing tolerable.
npm install --save-dev baretest
With pnpm
pnpm install --save-dev baretest
... Getting started
... API reference
... FAQ
We constantly hit CMD + B
on Sublime Text to test a function we are actively working on. We do this all the time, sometimes hundreds of times a day. With Jest, each of these runs would take seconds, but Baretest runs under 100ms.
Another reason for building Baretest was to have an extremely simple API. Typically we only use test()
and the Node's built-in assert.equals()
methods to run our tests. We've never needed automatic re-ordering, file watchers, "mocking" or "snapshotting".
const test = require('baretest')('My app'),
assert = require('assert'),
app = require('my-app')
test('add user', async function() {
const user = await app.addUser('test@cc.com')
assert.equals(user.name, 'Test')
})
test('reject duplicate emails', async function() {
await assert.rejects(async function() {
await app.addUser('duplicate@address.com')
})
})
// ...
!(async function() {
await test.run()
})()
We think a good test runner stays out of your way. We want to focus on the task at hand and not deal with the complexities of testing. We don't want to commit to a massive framework that dictates our work.
Copyright 2020 OpenJS Foundation and contributors. Licensed under MIT.
FAQs
Extremely fast and simple JavaScript test runner
The npm package baretest receives a total of 582 weekly downloads. As such, baretest popularity was classified as not popular.
We found that baretest 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.