You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -56,30 +55,26 @@ export async function addListTestFiles(): Promise<CallToolResult> {
56
55
};
57
56
}
58
57
59
-
// For multiple files, use the UUID workflow
60
-
constuuid=crypto.randomUUID();
61
-
62
-
// Store files in the unified structure with initial status false (not updated)
58
+
// For multiple files, store directly in testFiles
63
59
constfileStatusMap: {[key: string]: boolean}={};
64
60
testFiles.forEach((file)=>{
65
61
fileStatusMap[file]=false;// false = not updated, true = updated
66
62
});
67
63
68
-
// Update storedPercyResults with single UUID for the project
64
+
// Update storedPercyResults with test files
69
65
constupdatedStored={ ...storedResults};
70
-
updatedStored.uuid=uuid;// Store the UUID reference
71
-
updatedStored[uuid]=fileStatusMap;// Store files under the UUID key
66
+
updatedStored.testFiles=fileStatusMap;
72
67
storedPercyResults.set(updatedStored);
73
68
74
69
return{
75
70
content: [
76
71
{
77
72
type: "text",
78
-
text: `The Test files are stored in memory with id ${uuid}and the total number of tests files found is ${testFiles.length}. You can use this UUID to retrieve the tests file paths later.`,
73
+
text: `The Test files are stored in memory and the total number of tests files found is ${testFiles.length}.`,
79
74
},
80
75
{
81
76
type: "text",
82
-
text: `You can now use the tool addPercySnapshotCommands to update the test file with Percy commands for visual testing with the UUID ${uuid}`,
77
+
text: `You can now use the tool addPercySnapshotCommands to update the test file with Percy commands for visual testing.`,
0 commit comments