
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@universal-packages/logger-jest
Advanced tools
Jest matchers for Logger testing.
npm install @universal-packages/logger-jest
npm install @universal-packages/logger
Add the following to your jest.config.js
or where you configure Jest:
module.exports = {
setupFilesAfterEnv: ['@universal-packages/logger-jest']
}
import { Logger } from '@universal-packages/logger'
it('should logged log', async () => {
const logger = new Logger()
logger.log({ level: 'INFO', message: 'Hello World' })
expect(Logger).toHaveLogged({ level: 'INFO', message: 'Hello World' })
})
import { Logger } from '@universal-packages/logger'
it('should logged a total number of logs', async () => {
const logger = new Logger()
logger.log({ level: 'INFO', message: 'Hello World' })
expect(Logger).toHaveLoggedTotal(1)
})
In order for typescript to see the global types you need to reference the types somewhere in your project, normally ./src/globals.d.ts
.
/// <reference types="@universal-packages/logger-jest" />
This library is developed in TypeScript and shipped fully typed.
The development of this library happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving this library.
FAQs
Jest matchers for Universal Logger
The npm package @universal-packages/logger-jest receives a total of 0 weekly downloads. As such, @universal-packages/logger-jest popularity was classified as not popular.
We found that @universal-packages/logger-jest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.