@@ -66,10 +66,13 @@ export function getExplicitTestsFromArgs() {
6666}
6767
6868export function getChangedFiles ( ) {
69- const changedFilesPath = process . env . CHANGEDFILEINFOSPATH ;
70- return changedFilesPath
71- && existsSync ( changedFilesPath )
72- && JSON . parse ( readFileSync ( changedFilesPath ) ) ;
69+ // Temporarily disable changed files optimization - run all tests
70+ return null ;
71+
72+ // const changedFilesPath = process.env.CHANGEDFILEINFOSPATH;
73+ // return changedFilesPath
74+ // && existsSync(changedFilesPath)
75+ // && JSON.parse(readFileSync(changedFilesPath));
7376}
7477
7578export function globalReadFrom ( basePath , relativePath , mapCallback ) {
@@ -103,43 +106,43 @@ function getExplicitTestsInternal() {
103106 const changedFiles = getChangedFiles ( ) ;
104107
105108 if ( ! changedFiles ) { return getExplicitTestsFromArgs ( ) ; }
106- if ( ! Array . isArray ( changedFiles ) ) {
107- // eslint-disable-next-line no-console
108- console . log ( 'Running all tests. Changed files are not iterable: ' , JSON . stringify ( changedFiles ) ) ;
109- }
110-
111- const result = { masks : [ ] , traceTree : undefined } ;
112-
113- // eslint-disable-next-line no-restricted-syntax
114- for ( const changedFile of changedFiles ) {
115- const fileName = changedFile . filename ;
116-
117- if ( settings . ignoreChangesPathPatterns . some ( ( x ) => x . test ( fileName ) ) ) {
118- // eslint-disable-next-line no-continue
119- continue ;
120- }
121-
122- const parseResult = settings . demoExpr . exec ( fileName )
123- || settings . demoFilesExpr . exec ( fileName )
124- || settings . commonEtalonsExpr . exec ( fileName )
125- || settings . manualEtalonsExpr . exec ( fileName ) ;
126-
127- if ( parseResult ) {
128- const groups = parseResult . groups || { } ;
129-
130- result . masks . push ( patternGroupFromValues (
131- groups . product ,
132- groups . demo ,
133- groups . framework ,
134- ) ) ;
135- } else {
136- // eslint-disable-next-line no-console
137- if ( settings . verbose ) { console . log ( 'Unable to parse changed file, running all tests: ' , fileName ) ; }
138- return undefined ;
139- }
140- }
141-
142- return result ;
109+ // if (!Array.isArray(changedFiles)) {
110+ // // eslint-disable-next-line no-console
111+ // console.log('Running all tests. Changed files are not iterable: ', JSON.stringify(changedFiles));
112+ // }
113+
114+ // const result = { masks: [], traceTree: undefined };
115+
116+ // // eslint-disable-next-line no-restricted-syntax
117+ // for (const changedFile of changedFiles) {
118+ // const fileName = changedFile.filename;
119+
120+ // if (settings.ignoreChangesPathPatterns.some((x) => x.test(fileName))) {
121+ // // eslint-disable-next-line no-continue
122+ // continue;
123+ // }
124+
125+ // const parseResult = settings.demoExpr.exec(fileName)
126+ // || settings.demoFilesExpr.exec(fileName)
127+ // || settings.commonEtalonsExpr.exec(fileName)
128+ // || settings.manualEtalonsExpr.exec(fileName);
129+
130+ // if (parseResult) {
131+ // const groups = parseResult.groups || {};
132+
133+ // result.masks.push(patternGroupFromValues(
134+ // groups.product,
135+ // groups.demo,
136+ // groups.framework,
137+ // ));
138+ // } else {
139+ // // eslint-disable-next-line no-console
140+ // if (settings.verbose) { console.log('Unable to parse changed file, running all tests: ', fileName); }
141+ // return undefined;
142+ // }
143+ // }
144+
145+ // return result;
143146}
144147function getExplicitTests ( ) {
145148 const result = getExplicitTestsInternal ( ) ;
@@ -198,6 +201,9 @@ const SKIPPED_TESTS = {
198201 VectorMap : [
199202 { demo : 'Tooltip' , themes : [ THEME . material ] } ,
200203 { demo : 'TooltipsCustomization' , themes : [ THEME . material ] } ,
204+ { demo : 'CustomAnnotations' , themes : [ THEME . material ] } ,
205+ { demo : 'CustomProjection' , themes : [ THEME . material ] } ,
206+ { demo : 'CustomMapData' , themes : [ THEME . material ] } ,
201207 ]
202208 } ,
203209 Angular : {
@@ -394,9 +400,9 @@ export function runTestAtPage(test, demoUrl, shouldSkipJsError) {
394400 test . skipJsErrors ( ) ;
395401 }
396402
397- if ( settings . explicitTests ) {
398- executor = shouldRunTestExplicitly ( demoUrl ) ? test . only : executor = test . skip ;
399- }
403+ // if (settings.explicitTests) {
404+ // executor = shouldRunTestExplicitly(demoUrl) ? test.only : executor = test.skip;
405+ // }
400406 return executor . page ( demoUrl ) ;
401407}
402408
0 commit comments