Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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
The npm package jest-vue receives a total of 379 weekly downloads. As such, jest-vue popularity was classified as not popular.
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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.