Gathering detailed insights and metrics for @fromage/cli-plugin-unit-jest
Gathering detailed insights and metrics for @fromage/cli-plugin-unit-jest
Gathering detailed insights and metrics for @fromage/cli-plugin-unit-jest
Gathering detailed insights and metrics for @fromage/cli-plugin-unit-jest
🛠️ webpack-based tooling for Vue.js Development
npm install @fromage/cli-plugin-unit-jest
Typescript
Module System
Node Version
NPM Version
JavaScript (75.05%)
Vue (22.89%)
TypeScript (0.87%)
Stylus (0.47%)
HTML (0.27%)
Shell (0.26%)
AppleScript (0.18%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
29,725 Stars
3,533 Commits
6,326 Forks
629 Watchers
22 Branches
521 Contributors
Updated on Jul 10, 2025
Latest Version
5.0.79
Package Id
@fromage/cli-plugin-unit-jest@5.0.79
Unpacked Size
10.39 kB
Size
4.56 kB
File Count
8
NPM Version
6.9.0
Node Version
10.8.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
unit-jest plugin for vue-cli
vue-cli-service test:unit
Run unit tests with Jest. Default testMatch
is <rootDir>/(tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx))
which matches:
tests/unit
that end in .spec.(js|jsx|ts|tsx)
;__tests__
directories.Usage: vue-cli-service test:unit [options] <regexForTestFiles>
All Jest command line options are also supported.
Note that directly running jest
will fail because the Babel preset requires hints to make your code work in Node.js, so you must run your tests with vue-cli-service test:unit
.
If you want to debug your tests via the Node inspector, you can run the following:
1# macOS or linux 2node --inspect-brk ./node_modules/.bin/vue-cli-service test:unit 3 4# Windows 5node --inspect-brk ./node_modules/@fromage/cli-service/bin/vue-cli-service.js test:unit
Jest can be configured via jest.config.js
in your project root, or the jest
field in package.json
.
1vue add @fromage/unit-jest
/node_modules
By default, jest doesn't transform anything from /node_modules
.
Since jest runs in node, we also don't have to transpile anything that uses modern ECMAScript features as Node >=8 already supports these features, so it's a sensible default. cli-plugin-jest also doesn't respect the transpileDependencies
option in vue.config.js
for the same reason.
However, we have (at least) three cases where we do need to transpile code from /node_modules
in jest:
import
/export
statements, which have to be compiled to commonjs module.exports
.vue
files) which have to be run through vue-jest
To do this, we need to add an exception to the transformIgnorePatterns
option of jest. This is its default value:
1transformIgnorePatterns: ['/node_modules/']
We have to add exceptions to this pattern with a RegExp negative lookahead:
1transformIgnorePatterns: ['/node_modules/(?!name-of-lib-o-transform)']
To exclude multiple libraries:
1transformIgnorePatterns: ['/node_modules/(?!lib-to-transform|other-lib)']
No vulnerabilities found.
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
Found 5/29 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
120 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More