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.
Jest Vue transformer with source map support
this package has been renamed to vue-jest
You can download vue-jest with the following command:
npm install --save-dev vue-jest
npm install --save-dev jest-vue
To define jest-vue as a transformer for your .vue files, you need to map .vue files to the jest-vue module.
"transform": {
".*\\.(vue)$": "<rootDir>/node_modules/jest-vue"
},
To use source maps, you need to set mapCoverage
to true
. A full config will look like this.
{
"jest": {
"moduleFileExtensions": [
"js",
"json",
"vue"
],
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
".*\\.(vue)$": "<rootDir>/node_modules/jest-vue"
},
"mapCoverage": true
}
}
Example repositories testing Vue components with jest and jest-vue:
jest-vue compiles the script and template of SFCs into a JavaScript file that Jest can run. It does not currently compile the style section.
lang="ts"
, lang="typescript"
)lang="coffee"
, lang="coffeescript"
)lang="pug"
)lang="jade"
)FAQs
Jest Vue transform
We found that jest-vue 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.
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.