diff --git a/crates/iota-framework/tests/build-system-packages.rs b/crates/iota-framework/tests/build-system-packages.rs
index 8e343a0e33f..aefc06ab5d7 100644
--- a/crates/iota-framework/tests/build-system-packages.rs
+++ b/crates/iota-framework/tests/build-system-packages.rs
@@ -198,12 +198,17 @@ fn build_packages_with_move_config(
         &mut files_to_write,
     );
     create_category_file(framework_dir);
-    create_category_file(stdlib_dir);
     relocate_docs(
         framework_dir,
         &framework_pkg.package.compiled_docs.unwrap(),
         &mut files_to_write,
     );
+    create_category_file(stdlib_dir);
+    relocate_docs(
+        stdlib_dir,
+        &stdlib_pkg.package.compiled_docs.unwrap(),
+        &mut files_to_write,
+    );
     create_category_file(bridge_dir);
     relocate_docs(
         bridge_dir,