Lines Matching full:fs
20 import * as fs from 'node:fs';
76 const testFiles: string[] = fs.readdirSync(testDir).filter((x) => {
103 fs.renameSync(path.join(testDir, testFile), path.join(testDir, tsName));
118 fs.renameSync(path.join(testDir, tsName), path.join(testDir, testFile));
129 if (fs.existsSync(argsFileName)) {
130 const data = fs.readFileSync(argsFileName).toString();
151 const expectedResultFile = fs.readFileSync(path.join(testDir, testResultFileName)).toString();
173 if (mode === Mode.AUTOFIX && fs.existsSync(path.join(testDir, testFile + AUTOFIX_SKIP_EXT))) {
271 if (!fs.existsSync(actualResultsDir)) {
272 fs.mkdirSync(actualResultsDir);
276 fs.writeFileSync(path.join(actualResultsDir, testFile + resultExt), actualResultJSON);
279 fs.writeFileSync(path.join(actualResultsDir, testFile + resultExt + DIFF_EXT), diff);