
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@loopback/testlab
Advanced tools
A collection of test utilities we use to write LoopBack tests.
Test utilities to help writing loopback-next tests:
expect - behavior-driven development (BDD) style assertionssinon
supertest clients for LoopBack applications$ npm install --save-dev @loopback/testlab
This package is typically used in tests, save it to devDependencies via --save-dev.
import { expect } from '@loopback/testlab';
expect({key:'value'}).to.deepEqual({key: 'value'});
expect.exists(1);
expectShould.js configured in "as-function" mode
(global Object.prototype is left intact) with an extra chaining word to.
sinonSpies, mocks and stubs. Learn more at http://sinonjs.org/.
shotShot API Reference
validateApiSpecVerify that your application API specification is a valid OpenAPI spec document.
import {validateApiSpec} from '@loopback/testlab';
describe('MyApp', () => {)
it('has valid spec', async () => {
const app = new MyApp();
await validateApiSpec(app.getApiSpec());
})
});
For more info about supertest, please refer to supertest
run 'npm test' from the root folder.
See all contributors.
MIT
FAQs
A collection of test utilities we use to write LoopBack tests.
The npm package @loopback/testlab receives a total of 24,448 weekly downloads. As such, @loopback/testlab popularity was classified as popular.
We found that @loopback/testlab demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers 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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.