
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
civet-jest
is a Jest transformer
for automatically transpiling Civet code into JavaScript
when testing via Jest.
It does not yet support chaining with babel-jest, so JSX is not supported.
npm install -D @danielx/civet
npm install -D civet-jest
Edit your jest.config.*
file to define the transform and allow the .civet
file extension. Here is an complete example jest.config.mjs
:
import {defaults} from 'jest-config'
export default {
extensionsToTreatAsEsm: [ '.civet' ],
moduleFileExtensions: [ ...defaults.moduleFileExtensions, 'civet' ],
testMatch: [ '<rootDir>/test/**/*.civet' ],
transform: {
'\\.civet': 'civet-jest',
},
verbose: true,
}
This directory has a similar jest.config.mjs
that enables local testing via yarn test
.
In CommonJS mode, you should be able to just use:
{
"scripts": {
"test": "jest"
}
}
In ESM mode, you need something like this:
{
"scripts": {
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest"
}
}
This directory has a similar package.json
that enables local testing via yarn test
.
FAQs
Test Civet files with Jest
We found that civet-jest demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.