testeranto 0.233.5 → 0.233.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import { projectGraph } from '../core/projection';
|
|
4
|
+
// import type { GraphData } from '..';
|
|
5
|
+
// import type { ProjectionConfig } from '..';
|
|
4
6
|
|
|
5
7
|
export function useProjection(
|
|
6
|
-
data:
|
|
7
|
-
config:
|
|
8
|
+
data: any,
|
|
9
|
+
config: any
|
|
8
10
|
) {
|
|
9
11
|
return useMemo(() => {
|
|
10
12
|
return projectGraph(data, config);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "grafeovidajo",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "grafeovidajo",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.10",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@types/glob": "^9.0.0",
|
|
12
12
|
"glob": "^13.0.6"
|
|
@@ -291,8 +291,11 @@ export class Server_HTTP_utils {
|
|
|
291
291
|
const htmlContent = await fs.promises.readFile(htmlPath, "utf-8");
|
|
292
292
|
|
|
293
293
|
// Extract features and documentation files from all test results
|
|
294
|
-
const
|
|
295
|
-
|
|
294
|
+
const result = await this.extractFeaturesAndDocsFromTestResults(allTestResults);
|
|
295
|
+
const features = result.features || [];
|
|
296
|
+
const documentationFiles = result.documentationFiles || [];
|
|
297
|
+
const bddStatus = result.bddStatus || {};
|
|
298
|
+
const featureGraph = result.featureGraph || { nodes: [], edges: [] };
|
|
296
299
|
|
|
297
300
|
// Read contents of documentation files
|
|
298
301
|
const documentationWithContent = await this.readDocumentationFiles(documentationFiles);
|
|
@@ -316,8 +319,8 @@ export class Server_HTTP_utils {
|
|
|
316
319
|
allTestResults: allTestResults,
|
|
317
320
|
// Add file contents for files in the tree
|
|
318
321
|
fileContents: await this.extractFileContentsFromTree(collatedFilesTree),
|
|
319
|
-
// Add feature graph for visualization
|
|
320
|
-
featureGraph: featureGraph,
|
|
322
|
+
// Add feature graph for visualization (with fallback)
|
|
323
|
+
featureGraph: featureGraph || { nodes: [], edges: [] },
|
|
321
324
|
// Add grafeovidajo configuration
|
|
322
325
|
vizConfig: {
|
|
323
326
|
projection: {
|
|
@@ -371,6 +374,7 @@ window.TESTERANTO_EMBEDDED_DATA = JSON.parse(atob('${base64String}'));
|
|
|
371
374
|
modifiedHtml = htmlContent + scriptTag;
|
|
372
375
|
}
|
|
373
376
|
|
|
377
|
+
console.log("mark1", modifiedHtml)
|
|
374
378
|
return modifiedHtml;
|
|
375
379
|
} catch (error) {
|
|
376
380
|
console.error("Error generating HTML with embedded data:", error);
|