Skip to content
Snippets Groups Projects

Add readme and improve tests usage

Merged Igor Markin requested to merge add-readme-and-improve-tests-usage into master
18 files
+ 380
339
Compare changes
  • Side-by-side
  • Inline
Files
18
+ 16
0
const fs = require("fs");
export const listDirectories = (testCasesPath: string): Array<string> => {
return fs.readdirSync(testCasesPath).filter(function (file) {
return fs.statSync(testCasesPath + "/" + file).isDirectory();
});
};
const filesCache: { [key: string]: string } = {};
export const readFile = (path: string): string => {
if (!filesCache[path]) {
filesCache[path] = fs.readFileSync(path).toString();
}
return filesCache[path];
};
Loading