Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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
The npm package civet-jest receives a total of 0 weekly downloads. As such, civet-jest popularity was classified as not popular.
We found that civet-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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.