We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 175cfbf commit 346a349Copy full SHA for 346a349
packages/docusaurus/src/commands/swizzle/__tests__/index.test.ts
@@ -91,15 +91,10 @@ async function createTestSite() {
91
const siteThemePathPosix = posixPath(siteThemePath);
92
expect(tree(siteThemePathPosix)).toMatchSnapshot('theme dir tree');
93
94
- const files = (await Globby(siteThemePathPosix))
95
- .map((file) => path.posix.relative(siteThemePathPosix, file))
96
- .sort();
+ const files = (await Globby(siteThemePathPosix, {absolute: true})).sort();
97
98
for (const file of files) {
99
- const fileContent = await fs.readFile(
100
- path.posix.join(siteThemePath, file),
101
- 'utf-8',
102
- );
+ const fileContent = await fs.readFile(file, 'utf-8');
103
expect(fileContent).toMatchSnapshot(file);
104
}
105
0 commit comments