Commit 9f3122c3 authored by tom's avatar tom

[skip ci] optimize affected tests script

parent d4d4859d
...@@ -13,6 +13,7 @@ const NON_EXISTENT_DEPS = []; ...@@ -13,6 +13,7 @@ const NON_EXISTENT_DEPS = [];
const DIRECTORIES_WITH_TESTS = [ const DIRECTORIES_WITH_TESTS = [
path.resolve(ROOT_DIR, './ui'), path.resolve(ROOT_DIR, './ui'),
]; ];
const VISITED = {};
function getAllPwFilesInDirectory(directory) { function getAllPwFilesInDirectory(directory) {
const files = fs.readdirSync(directory, { recursive: true }); const files = fs.readdirSync(directory, { recursive: true });
...@@ -38,6 +39,7 @@ function getFileDeps(filename, changedNpmModules) { ...@@ -38,6 +39,7 @@ function getFileDeps(filename, changedNpmModules) {
}, },
tsConfig: path.resolve(ROOT_DIR, './tsconfig.json'), tsConfig: path.resolve(ROOT_DIR, './tsconfig.json'),
nonExistent: NON_EXISTENT_DEPS, nonExistent: NON_EXISTENT_DEPS,
visited: VISITED,
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment