diff --git a/memory-viz/src/tests/__snapshots__/cli.spec.tsx.snap b/memory-viz/src/tests/__snapshots__/cli.spec.tsx.snap index 0ca8d7a..eee4b4e 100644 --- a/memory-viz/src/tests/__snapshots__/cli.spec.tsx.snap +++ b/memory-viz/src/tests/__snapshots__/cli.spec.tsx.snap @@ -1,399 +1,642 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`memory-viz CLI output path should overwrite existing svg when the output path is a file that exists 1`] = ` -""David is cool!"id19str" + + + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`memory-viz CLI output path should produce consistent svg when the output path is a file 1`] = ` -""David is cool!"id19str" + + + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`memory-viz CLI output path should produce consistent svg when the output path is a file in a directory 1`] = ` -""David is cool!"id19str" + + + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`memory-viz cli produces consistent svg when provided filepath and a variety of rough-config option(s) 1`] = ` -""David is cool!"id19str" + + + + + + + + + + "David is cool!" + + + + + + + + id19str + `; exports[`memory-viz cli produces consistent svg when provided filepath and output option(s) 1`] = ` -""David is cool!"id19str" + + + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`memory-viz cli produces consistent svg when provided filepath and stdout 1`] = ` -""David is cool!"id19str -" + + + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`memory-viz cli produces consistent svg when provided filepath, output, and height option(s) 1`] = ` -""David is cool!"id19str" + + + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`memory-viz cli produces consistent svg when provided filepath, output, and width option(s) 1`] = ` -""David is cool!"id19str" + + + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`memory-viz cli produces consistent svg when provided filepath, output, height, and width option(s) 1`] = ` -""David is cool!"id19str" + + + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`memory-viz cli produces consistent svg when provided stdin and output 1`] = ` -""David is cool!"id19str" + + + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`memory-viz cli produces consistent svg when provided stdin and stdout 1`] = ` -""David is cool!"id19str -" + + + + + + + + + "David is cool!" + + + + + + id19str + `; diff --git a/memory-viz/src/tests/__snapshots__/draw.spec.tsx.snap b/memory-viz/src/tests/__snapshots__/draw.spec.tsx.snap index a22bde1..e8547af 100644 --- a/memory-viz/src/tests/__snapshots__/draw.spec.tsx.snap +++ b/memory-viz/src/tests/__snapshots__/draw.spec.tsx.snap @@ -1,1549 +1,2824 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`draw function formats a mix of stack frame/non-stack frame objects in automatic layout 1`] = ` -"aid7__main__xid1yid17funcid170id81id84listNoneid10None" + + + + + + + + aid7 + + + __main__ + + + + + + xid1 + + + yid17 + + + func + + + + + + id170 + + + id81 + + + + + + id84list + + + + + + None + + + + + + id10None + `; exports[`draw function formats non-stack frame objects in automatic layout 1`] = ` -"42id98intnameid12id23fruitid19id42id22id63id54list"banana"id12str" + + + + + + + + 42 + + + + + + id98int + + + + + + nameid12 + + + + + + id23fruit + + + + + + id19 + + + id42 + + + id22 + + + id63 + + + + + + id54list + + + + + + "banana" + + + + + + id12str + `; exports[`draw function renders 'fade' style preset 1`] = ` -"itemid45__main__"fade!"id42str" + + + + + + + + + itemid45 + + + + __main__ + + + + + + + "fade!" + + + + + + id42str + `; exports[`draw function renders 'fade_id' style preset 1`] = ` -"itemid45__main__"fade id!"id42str" + + + + + + + + itemid45 + + + __main__ + + + + + + "fade id!" + + + + + + id42str + `; exports[`draw function renders 'fade_type' style preset 1`] = ` -"itemid45__main__"fade_type!"id42str" + + + + + + + + itemid45 + + + __main__ + + + + + + "fade_type!" + + + + + + id42str + `; exports[`draw function renders 'hide' style preset 1`] = ` -"itemid45__main__"hide!"id42str" + + + + + + + + + itemid45 + + + + __main__ + + + + + + + "hide!" + + + + + + + + id42str + `; exports[`draw function renders 'hide_container' style preset 1`] = ` -"itemid45__main__"hide container!"id42str" + + + + + + + + + itemid45 + + + + __main__ + + + + + + + "hide container!" + + + + + + id42str + `; exports[`draw function renders 'hide_id' style preset 1`] = ` -"itemid45__main__"hide id!"id42str" + + + + + + + + itemid45 + + + __main__ + + + + + + "hide id!" + + + + + + + id42str + `; exports[`draw function renders 'highlight' style preset 1`] = ` -"itemid45__main__"highlight!"id42str" + + + + + + + + + itemid45 + + + + __main__ + + + + + + + "highlight!" + + + + + + id42str + `; exports[`draw function renders 'highlight_id' style preset 1`] = ` -"itemid45__main__"highlight id!"id42str" + + + + + + + + itemid45 + + + __main__ + + + + + + "highlight id!" + + + + + + + id42str + `; exports[`draw function renders 'highlight_type' style preset 1`] = ` -"itemid45__main__"highlight type!"id42str" + + + + + + + + itemid45 + + + __main__ + + + + + + "highlight type!" + + + + + + + id42str + `; exports[`draw function renders a blank space 1`] = ` -"" + + + `; exports[`draw function renders a blank stack frame 1`] = ` -"id19id43id28id49id82list" + + + + + + + + id19 + + + id43 + + + id28 + + + id49 + + + + + + id82list + `; exports[`draw function renders a bool 1`] = ` -"Trueid32bool" + + + + + + + + True + + + + + + id32bool + `; exports[`draw function renders a bool using manual layout 1`] = ` -"Trueid32bool" + + + + + + + + True + + + + + + id32bool + `; exports[`draw function renders a diagram with 'small' width value and a mix stack frame/non-stack frame objects 1`] = ` -"aid7__main__xid1yid17funcid170id81id84list"David is cool!"id19str" + + + + + + + + aid7 + + + __main__ + + + + + + xid1 + + + yid17 + + + func + + + + + + id170 + + + id81 + + + + + + id84list + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`draw function renders a diagram with 'small' width value and no stack frames 1`] = ` -""David is cool!"id19str" + + + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`draw function renders a diagram with large left margins 1`] = ` -"aid7__main__xid1yid17funcid170id81id84list"David is cool!"id19str" + + + + + + + + aid7 + + + __main__ + + + + + + xid1 + + + yid17 + + + func + + + + + + id170 + + + id81 + + + + + + id84list + + + + + + + "David is cool!" + + + + + + id19str + `; exports[`draw function renders a dict 1`] = ` -"idxidyidz:id81:id100:id121id10dict" + + + + + idx + + + idy + + + idz + + + + + + :id81 + + + :id100 + + + :id121 + + + + + + id10dict + `; exports[`draw function renders a float 1`] = ` -"7id32float" + + + + + + + + 7 + + + + + + id32float + `; exports[`draw function renders a list with indexes showing 1`] = ` -"id100id111id122id32list" + + + + + + + + id100 + + + id111 + + + id122 + + + + + + id32list + `; exports[`draw function renders a list without indexes showing 1`] = ` -"id10id11id12id32list" + + + + + + + + id10 + + + id11 + + + id12 + + + + + + id32list + `; exports[`draw function renders a set 1`] = ` -"id10id11,id12,id32set{}" + + + + + + + + id10 + + + id11, + + + id12, + + + + + + id32set{} + `; exports[`draw function renders a stack frame and an int 1`] = ` -"my_intid13__main__7id13int" + + + + + + + + my_intid13 + + + __main__ + + + + + + 7 + + + + + + id13int + `; exports[`draw function renders a stack frame using manual layout 1`] = ` -"lst1id82lst2id84__main__" + + + + + + + + lst1id82 + + + lst2id84 + + + __main__ + `; exports[`draw function renders a str 1`] = ` -""winter"id32str" + + + + + + + + "winter" + + + + + + id32str + `; exports[`draw function renders a tuple with indexes showing 1`] = ` -"id100id111id122id32tuple" + + + + + + + + + + + id100 + + + id111 + + + id122 + + + + + + id32tuple + `; exports[`draw function renders a tuple without indexes showing 1`] = ` -"id10id11id12id32tuple" + + + + + + + + + + + id10 + + + id11 + + + id12 + + + + + + id32tuple + `; exports[`draw function renders an empty dict 1`] = ` -"id32dict" + + + + + + + + + + + id32dict + `; exports[`draw function renders an empty list 1`] = ` -"id32list" + + + + + + + + + + + id32list + `; exports[`draw function renders an empty set 1`] = ` -"id32set{}" + + + + + + + + + + + id32set{} + `; exports[`draw function renders an empty tuple 1`] = ` -"id32tuple" + + + + + + + + + + + + + + id32tuple + `; exports[`draw function renders an int 1`] = ` -"7id32int" + + + + + + + + 7 + + + + + + id32int + `; exports[`draw function renders an object with no type and no value 1`] = ` -"Noneid13None" + + + + + + + + None + + + + + + id13None + `; exports[`draw function renders blank spaces in automatic layout 1`] = ` -"42id98int"life"id99str" + + + + + + + + 42 + + + + + + id98int + + + + + + "life" + + + + + + id99str + `; exports[`draw function renders combinations of style presets 1`] = ` -"itemid45__main__"combination!"id42str" + + + + + + + + + itemid45 + + + + __main__ + + + + + + "combination!" + + + + + + + + id42str + `; exports[`draw function renders custom style (without presets) 1`] = ` -""David is cool!"id19str" + + + + + + + + + "David is cool!" + + + + + + + id19str + `; exports[`draw function renders diagrams with provided mix of roughjs_config options 1`] = ` -""hello"id42str" + + + + + + + + + + "hello" + + + + + + + + id42str + `; exports[`draw function renders diagrams with provided roughjs_config 'fill' and 'fillStyle' options 1`] = ` -""hello"id42str" + + + + + + + + + + "hello" + + + + + + + + id42str + `; exports[`draw function renders diagrams with provided roughjs_config 'fill' option 1`] = ` -""hello"id42str" + + + + + + + + + + "hello" + + + + + + + + id42str + `; exports[`draw function renders diagrams with provided roughjs_config 'roughness' option 1`] = ` -""hello"id42str" + + + + + + + + "hello" + + + + + + id42str + `; exports[`draw function renders range object 1`] = ` -"range(1, 5)id42range" + + + + + range(1, 5) + + + + + + id42range + `; exports[`draw function should produce consistent svg when provided seed 1`] = ` -"lst1id82lst2id84pid99did10tid11__main__"David is cool!"id19str7id13int" + + + + + + + + lst1id82 + + + lst2id84 + + + pid99 + + + did10 + + + tid11 + + + __main__ + + + + + + + "David is cool!" + + + + + + id19str + + + + + + 7 + + + + + + id13int + `;