(directory)
| 231 | |
| 232 | test("file struct", async () => { |
| 233 | const getFileStruct = async (directory) => |
| 234 | (await fs.promises.readdir(directory, { withFileTypes: true })) |
| 235 | .map((dirent) => ({ |
| 236 | name: dirent.name, |
| 237 | isSymbolicLink: dirent.isSymbolicLink(), |
| 238 | })) |
| 239 | .sort((a, b) => a.name.localeCompare(b.name)); |
| 240 | |
| 241 | expect(await getFileStruct(directoryA)).toMatchInlineSnapshot(` |
| 242 | [ |
no test coverage detected
searching dependent graphs…