File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -70,21 +70,13 @@ export default class Archiver {
7070 ignoredPaths = ignoredPaths . concat ( this . config . run_settings . exclude ) ;
7171 }
7272
73- if ( ! this . config . run_settings . cypressSpecs ) {
74- allowedFileTypes . forEach ( ( fileType ) => {
75- archive . glob ( `**/*.${ fileType } ` , {
76- cwd : this . config . run_settings . cypress_project_dir ,
77- matchBase : true ,
78- ignore : ignoredPaths ,
79- } ) ;
80- } ) ;
81- } else {
82- archive . glob ( this . config . run_settings . cypressSpecs , {
73+ allowedFileTypes . forEach ( ( fileType ) => {
74+ archive . glob ( `**/*.${ fileType } ` , {
8375 cwd : this . config . run_settings . cypress_project_dir ,
8476 matchBase : true ,
8577 ignore : ignoredPaths ,
8678 } ) ;
87- }
79+ } ) ;
8880
8981 const packageJSON = { } ;
9082
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export interface ICapability {
1616 build ?: string ;
1717 headless ?: boolean ;
1818 cypressEnv ?: string [ ] ;
19+ cypressSpecs ?: string [ ] ;
1920 cypressVersion ?: string ;
2021}
2122
Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ export default class Uploader {
4545 } ) ;
4646 }
4747
48+ if ( this . config . run_settings . cypressSpecs ) {
49+ capabilities . map ( ( capability : ICapability ) => {
50+ capability . cypressSpecs = this . config . run_settings . cypressSpecs . split ( ',' ) ;
51+ } ) ;
52+ }
53+
4854 if ( this . config . run_settings . cypressVersion ) {
4955 capabilities . map ( ( capability : ICapability ) => {
5056 capability . cypressVersion = this . config . run_settings . cypressVersion ;
You can’t perform that action at this time.
0 commit comments