File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 88
88
"test:w" : " vitest --watch" ,
89
89
"test:e2e" : " npx cypress open" ,
90
90
"simple-build" : " npm run clean && vite build --mode production && node copy-types.cjs" ,
91
- "preprod" : " node del-dev-dep.cjs && npm run clean && vite build --mode production && node copy-types.cjs && node copy-docs.cjs && node post-build.cjs"
91
+ "preprod" : " node del-dev-dep.cjs && npm run clean && vite build --mode production && node copy-types.cjs && node copy-docs.cjs && node post-build.cjs" ,
92
+ "cy-all" : " npx cypress run --component" ,
93
+ "cy" : " node run-cy.cjs"
92
94
},
93
95
"peerDependencies" : {
94
96
"vue" : " >=3.3.0" ,
Original file line number Diff line number Diff line change
1
+ const { execSync } = require ( "child_process" ) ;
2
+
3
+ const file = process . argv [ 2 ] ;
4
+ if ( ! file ) {
5
+ console . error ( "❌ Please provide a test filename, e.g. npm run cy Slicer" ) ;
6
+ process . exit ( 1 ) ;
7
+ }
8
+
9
+ const cmd = `npx cypress run --component --spec "src/**/${ file } .cy.js"` ;
10
+ console . log ( "▶️ Running:" , cmd ) ;
11
+ execSync ( cmd , { stdio : "inherit" } ) ;
You can’t perform that action at this time.
0 commit comments