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 8888 "test:w" : " vitest --watch" ,
8989 "test:e2e" : " npx cypress open" ,
9090 "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"
9294 },
9395 "peerDependencies" : {
9496 "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