Revert "simplify"

This reverts commit 346a349836.
This commit is contained in:
Ben McCann 2025-05-25 18:14:24 -07:00
parent 346a349836
commit ca54f5dcdc

View File

@ -91,10 +91,15 @@ async function createTestSite() {
const siteThemePathPosix = posixPath(siteThemePath);
expect(tree(siteThemePathPosix)).toMatchSnapshot('theme dir tree');
const files = (await Globby(siteThemePathPosix, {absolute: true})).sort();
const files = (await Globby(siteThemePathPosix))
.map((file) => path.posix.relative(siteThemePathPosix, file))
.sort();
for (const file of files) {
const fileContent = await fs.readFile(file, 'utf-8');
const fileContent = await fs.readFile(
path.posix.join(siteThemePath, file),
'utf-8',
);
expect(fileContent).toMatchSnapshot(file);
}
}