@@ -23,7 +23,7 @@ function testFiles(pkg) {
23
23
files . push ( returnFilePathOrThrow ( `test/spec/manual/responsive-${ pkg } -spec.js` ) ) ;
24
24
25
25
if ( pkg === 'jquery-file-upload' ) {
26
- files . push ( returnFilePathOrThrow ( 'test/spec/cloudinary-jquery-upload-spec.js' ) ) ;
26
+ files . push ( returnFilePathOrThrow ( 'test/spec/manual/ cloudinary-jquery-upload-spec.js' ) ) ;
27
27
} else {
28
28
files . push ( returnFilePathOrThrow ( `test/spec/manual/lazy-load-${ pkg } -spec.js` ) ) ;
29
29
}
@@ -70,7 +70,27 @@ module.exports = function(config) {
70
70
const lazyLoadBase = returnFilePathOrThrow ( `test/spec/manual/lazyLoadTestBase.js` ) ;
71
71
72
72
const responsiveHtmlFile = returnFilePathOrThrow ( `test/docRoot/responsive-${ pkg } -test.html` ) ;
73
- const lazyLoadHtmlFile = returnFilePathOrThrow ( `test/docRoot/lazy-load-${ pkg } -test.html` ) ;
73
+
74
+ let lazyLoadHtmlFile ;
75
+ if ( pkg !== 'jquery-file-upload' ) {
76
+ lazyLoadHtmlFile = returnFilePathOrThrow ( `test/docRoot/lazy-load-${ pkg } -test.html` ) ;
77
+ }
78
+
79
+ let pattern = [
80
+ '{' , // keep this first
81
+ `dist/*.map`
82
+ ] ;
83
+
84
+ if ( responsiveHtmlFile ) {
85
+ pattern . push ( responsiveHtmlFile ) ;
86
+ }
87
+
88
+ pattern = pattern . concat ( [
89
+ lazyLoadHtmlFile ,
90
+ `node_modules/bootstrap/dist/+(css|js)/*` ,
91
+ `test/docRoot/css/logo-nav.css` ,
92
+ '}' // keep this last
93
+ ] ) . join ( ',' ) ;
74
94
75
95
return config . set ( {
76
96
// base path that will be used to resolve all patterns (eg. files, exclude)
@@ -86,15 +106,7 @@ module.exports = function(config) {
86
106
lazyLoadBase ,
87
107
...testFiles ( pkg ) ,
88
108
{
89
- pattern : [
90
- '{' , // keep this first
91
- `dist/*.map` ,
92
- responsiveHtmlFile ,
93
- lazyLoadHtmlFile ,
94
- `node_modules/bootstrap/dist/+(css|js)/*` ,
95
- `test/docRoot/css/logo-nav.css` ,
96
- '}' // keep this last
97
- ] . join ( ',' ) ,
109
+ pattern,
98
110
watched : false ,
99
111
included : false ,
100
112
served : true ,
0 commit comments