aboutsummaryrefslogtreecommitdiff
path: root/website/scripts/docs-snapshot.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'website/scripts/docs-snapshot.mjs')
-rw-r--r--website/scripts/docs-snapshot.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/website/scripts/docs-snapshot.mjs b/website/scripts/docs-snapshot.mjs
index b85557a1..e9eaf92c 100644
--- a/website/scripts/docs-snapshot.mjs
+++ b/website/scripts/docs-snapshot.mjs
@@ -73,7 +73,7 @@ export async function compareGitTree(git, ref, sourceRoot, snapshotRoot) {
assertRelativePath(relativePath, entry.path);
expected.set(relativePath, entry);
}
- const actualPaths = await listSnapshotPaths(snapshotRoot);
+ const actualPaths = await listDocumentationPaths(snapshotRoot);
const expectedPaths = [...expected.keys()].sort();
if (JSON.stringify(actualPaths) !== JSON.stringify(expectedPaths)) {
throw new Error(`${snapshotRoot} file list differs from ${ref}:${sourceRoot}`);
@@ -89,7 +89,7 @@ export async function compareGitTree(git, ref, sourceRoot, snapshotRoot) {
}
}
-async function listSnapshotPaths(root) {
+export async function listDocumentationPaths(root) {
const paths = [];
async function walk(directory) {
for (const entry of await readdir(directory, { withFileTypes: true })) {