()
| 51 | .sort() |
| 52 | |
| 53 | const clearAnyPreviousFolders = () => { |
| 54 | if (fs.existsSync(genPath)) { |
| 55 | fs.rmSync(genPath, { recursive: true, force: true }) |
| 56 | } |
| 57 | if (fs.existsSync(genPathWithSubfolder)) { |
| 58 | fs.rmSync(genPathWithSubfolder, { recursive: true, force: true }) |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | beforeAll(() => clearAnyPreviousFolders()) |
| 63 | afterEach(() => clearAnyPreviousFolders()) |