From 5fc1c4fd02f140a916fc0fa3d89a62e214e79c33 Mon Sep 17 00:00:00 2001 From: daishi Date: Tue, 30 Apr 2024 00:13:44 +0900 Subject: [PATCH] e2e snapshots --- package.json | 2 +- tests/e2e/__snapshots__/01_counter.ts.snap | 129 ++++++++++ tests/e2e/__snapshots__/02_person.ts.snap | 145 +++++++++++ tests/e2e/__snapshots__/03_usestate.ts.snap | 121 ++++++++++ tests/e2e/__snapshots__/04_selector.ts.snap | 113 +++++++++ tests/e2e/__snapshots__/05_container.ts.snap | 161 +++++++++++++ tests/e2e/__snapshots__/06_customhook.ts.snap | 65 +++++ tests/e2e/__snapshots__/07_todolist.ts.snap | 225 ++++++++++++++++++ tests/e2e/__snapshots__/08_comparison.ts.snap | 89 +++++++ tests/e2e/__snapshots__/09_reactmemo.ts.snap | 49 ++++ tests/e2e/__snapshots__/10_untracked.ts.snap | 89 +++++++ tests/e2e/__snapshots__/11_form.ts.snap | 89 +++++++ tests/e2e/__snapshots__/12_async.ts.snap | 41 ++++ tests/e2e/__snapshots__/13_saga.ts.snap | 41 ++++ tests/e2e/__snapshots__/14_dynamic.ts.snap | 97 ++++++++ .../e2e/__snapshots__/15_reactmemoref.ts.snap | 49 ++++ 16 files changed, 1504 insertions(+), 1 deletion(-) create mode 100644 tests/e2e/__snapshots__/01_counter.ts.snap create mode 100644 tests/e2e/__snapshots__/02_person.ts.snap create mode 100644 tests/e2e/__snapshots__/03_usestate.ts.snap create mode 100644 tests/e2e/__snapshots__/04_selector.ts.snap create mode 100644 tests/e2e/__snapshots__/05_container.ts.snap create mode 100644 tests/e2e/__snapshots__/06_customhook.ts.snap create mode 100644 tests/e2e/__snapshots__/07_todolist.ts.snap create mode 100644 tests/e2e/__snapshots__/08_comparison.ts.snap create mode 100644 tests/e2e/__snapshots__/09_reactmemo.ts.snap create mode 100644 tests/e2e/__snapshots__/10_untracked.ts.snap create mode 100644 tests/e2e/__snapshots__/11_form.ts.snap create mode 100644 tests/e2e/__snapshots__/12_async.ts.snap create mode 100644 tests/e2e/__snapshots__/13_saga.ts.snap create mode 100644 tests/e2e/__snapshots__/14_dynamic.ts.snap create mode 100644 tests/e2e/__snapshots__/15_reactmemoref.ts.snap diff --git a/package.json b/package.json index 6e792515..ddcb91ba 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "test:e2e": "run-s e2e:*", "e2e:01_counter": "server-test examples:01_counter http://localhost:8080 'vitest run --project=e2e 01_counter'", "e2e:02_person": "server-test examples:02_person http://localhost:8080 'vitest run --project=e2e 02_person'", - "e2e:03_setstate": "server-test examples:03_setstate http://localhost:8080 'vitest run --project=e2e 03_setstate'", + "e2e:03_usestate": "server-test examples:03_usestate http://localhost:8080 'vitest run --project=e2e 03_usestate'", "e2e:04_selector": "server-test examples:04_selector http://localhost:8080 'vitest run --project=e2e 04_selector'", "e2e:05_container": "server-test examples:05_container http://localhost:8080 'vitest run --project=e2e 05_container'", "e2e:06_customhook": "server-test examples:06_customhook http://localhost:8080 'vitest run --project=e2e 06_customhook'", diff --git a/tests/e2e/__snapshots__/01_counter.ts.snap b/tests/e2e/__snapshots__/01_counter.ts.snap new file mode 100644 index 00000000..ae585683 --- /dev/null +++ b/tests/e2e/__snapshots__/01_counter.ts.snap @@ -0,0 +1,129 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`01_minimal > should work with recorded events 1`] = ` +" +

Counter

numRendered: 26
Count: 1
numRendered: 28
Count: 1

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 2`] = ` +" +

Counter

numRendered: 34
Count: 2
numRendered: 36
Count: 2

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 3`] = ` +" +

Counter

numRendered: 42
Count: 3
numRendered: 44
Count: 3

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 4`] = ` +" +

Counter

numRendered: 50
Count: 2
numRendered: 52
Count: 2

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 5`] = ` +" +

Counter

numRendered: 58
Count: 1
numRendered: 60
Count: 1

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 6`] = ` +" +

Counter

numRendered: 66
Count: 0
numRendered: 68
Count: 0

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 7`] = ` +" +

Counter

numRendered: 74
Count: -1
numRendered: 76
Count: -1

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 8`] = ` +" +

Counter

numRendered: 82
Count: -2
numRendered: 84
Count: -2

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 9`] = ` +" +

Counter

numRendered: 90
Count: -3
numRendered: 92
Count: -3

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 10`] = ` +" +

Counter

numRendered: 98
Count: -2
numRendered: 100
Count: -2

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 11`] = ` +" +

Counter

numRendered: 106
Count: -1
numRendered: 108
Count: -1

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 12`] = ` +" +

Counter

numRendered: 114
Count: 0
numRendered: 116
Count: 0

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 13`] = ` +" +

Counter

numRendered: 114
Count: 0
numRendered: 116
Count: 0

TextBox

numRendered: 6
Text: hello
numRendered: 8
Text: hello
+ + +" +`; + +exports[`01_minimal > should work with recorded events 14`] = ` +" +

Counter

numRendered: 114
Count: 0
numRendered: 116
Count: 0

TextBox

numRendered: 126
Text: hello1
numRendered: 128
Text: hello1
+ + +" +`; + +exports[`01_minimal > should work with recorded events 15`] = ` +" +

Counter

numRendered: 114
Count: 0
numRendered: 116
Count: 0

TextBox

numRendered: 134
Text: hello12
numRendered: 136
Text: hello12
+ + +" +`; + +exports[`01_minimal > should work with recorded events 16`] = ` +" +

Counter

numRendered: 114
Count: 0
numRendered: 116
Count: 0

TextBox

numRendered: 142
Text: hello123
numRendered: 144
Text: hello123
+ + +" +`; diff --git a/tests/e2e/__snapshots__/02_person.ts.snap b/tests/e2e/__snapshots__/02_person.ts.snap new file mode 100644 index 00000000..e11f07a1 --- /dev/null +++ b/tests/e2e/__snapshots__/02_person.ts.snap @@ -0,0 +1,145 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`02_typescript > should work with recorded events 1`] = ` +" +

Counter

numRendered: 18
Count: 1
numRendered: 20
Count: 1

Person

numRendered: 2
numRendered: 36
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 40
Count: 1
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 2`] = ` +" +

Counter

numRendered: 26
Count: 2
numRendered: 28
Count: 2

Person

numRendered: 2
numRendered: 52
Count: 2
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 56
Count: 2
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 3`] = ` +" +

Counter

numRendered: 34
Count: 1
numRendered: 36
Count: 1

Person

numRendered: 2
numRendered: 68
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 72
Count: 1
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 4`] = ` +" +

Counter

numRendered: 42
Count: 0
numRendered: 44
Count: 0

Person

numRendered: 2
numRendered: 84
Count: 0
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 88
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 5`] = ` +" +

Counter

numRendered: 50
Count: 1
numRendered: 52
Count: 1

Person

numRendered: 2
numRendered: 100
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 104
Count: 1
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 6`] = ` +" +

Counter

numRendered: 58
Count: 2
numRendered: 60
Count: 2

Person

numRendered: 2
numRendered: 116
Count: 2
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 120
Count: 2
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 7`] = ` +" +

Counter

numRendered: 66
Count: 1
numRendered: 68
Count: 1

Person

numRendered: 2
numRendered: 132
Count: 1
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 136
Count: 1
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 8`] = ` +" +

Counter

numRendered: 74
Count: 0
numRendered: 76
Count: 0

Person

numRendered: 2
numRendered: 148
Count: 0
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 152
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 9`] = ` +" +

Counter

numRendered: 74
Count: 0
numRendered: 76
Count: 0

Person

numRendered: 2
numRendered: 148
Count: 0
First Name:
Last Name:
Age:
numRendered: 6
numRendered: 152
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 10`] = ` +" +

Counter

numRendered: 74
Count: 0
numRendered: 76
Count: 0

Person

numRendered: 162
numRendered: 164a
Count: 0
First Name:
Last Name:
Age:
numRendered: 166
numRendered: 168a
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 11`] = ` +" +

Counter

numRendered: 74
Count: 0
numRendered: 76
Count: 0

Person

numRendered: 178
numRendered: 180ab
Count: 0
First Name:
Last Name:
Age:
numRendered: 182
numRendered: 184ab
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 12`] = ` +" +

Counter

numRendered: 74
Count: 0
numRendered: 76
Count: 0

Person

numRendered: 194
numRendered: 196abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 198
numRendered: 200abc
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 13`] = ` +" +

Counter

numRendered: 74
Count: 0
numRendered: 76
Count: 0

Person

numRendered: 210
numRendered: 212abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 214
numRendered: 216abc
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 14`] = ` +" +

Counter

numRendered: 74
Count: 0
numRendered: 76
Count: 0

Person

numRendered: 226
numRendered: 228abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 230
numRendered: 232abc
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 15`] = ` +" +

Counter

numRendered: 74
Count: 0
numRendered: 76
Count: 0

Person

numRendered: 242
numRendered: 244abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 246
numRendered: 248abc
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 16`] = ` +" +

Counter

numRendered: 74
Count: 0
numRendered: 76
Count: 0

Person

numRendered: 258
numRendered: 260abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 262
numRendered: 264abc
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 17`] = ` +" +

Counter

numRendered: 74
Count: 0
numRendered: 76
Count: 0

Person

numRendered: 274
numRendered: 276abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 278
numRendered: 280abc
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`02_typescript > should work with recorded events 18`] = ` +" +

Counter

numRendered: 74
Count: 0
numRendered: 76
Count: 0

Person

numRendered: 290
numRendered: 292abc
Count: 0
First Name:
Last Name:
Age:
numRendered: 294
numRendered: 296abc
Count: 0
First Name:
Last Name:
Age:
+ + +" +`; diff --git a/tests/e2e/__snapshots__/03_usestate.ts.snap b/tests/e2e/__snapshots__/03_usestate.ts.snap new file mode 100644 index 00000000..26fe44bb --- /dev/null +++ b/tests/e2e/__snapshots__/03_usestate.ts.snap @@ -0,0 +1,121 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`03_usestate > should work with recorded events 1`] = ` +" +

Counter

numRendered: 18
Count: 1
numRendered: 20
Count: 1

Person

numRendered: 2
First Name:
Last Name:
Age:
numRendered: 4
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 2`] = ` +" +

Counter

numRendered: 26
Count: 2
numRendered: 28
Count: 2

Person

numRendered: 2
First Name:
Last Name:
Age:
numRendered: 4
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 3`] = ` +" +

Counter

numRendered: 34
Count: 3
numRendered: 36
Count: 3

Person

numRendered: 2
First Name:
Last Name:
Age:
numRendered: 4
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 4`] = ` +" +

Counter

numRendered: 42
Count: 4
numRendered: 44
Count: 4

Person

numRendered: 2
First Name:
Last Name:
Age:
numRendered: 4
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 5`] = ` +" +

Counter

numRendered: 50
Count: 5
numRendered: 52
Count: 5

Person

numRendered: 2
First Name:
Last Name:
Age:
numRendered: 4
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 6`] = ` +" +

Counter

numRendered: 50
Count: 5
numRendered: 52
Count: 5

Person

numRendered: 2
First Name:
Last Name:
Age:
numRendered: 4
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 7`] = ` +" +

Counter

numRendered: 50
Count: 5
numRendered: 52
Count: 5

Person

numRendered: 58
First Name:
Last Name:
Age:
numRendered: 60
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 8`] = ` +" +

Counter

numRendered: 50
Count: 5
numRendered: 52
Count: 5

Person

numRendered: 66
First Name:
Last Name:
Age:
numRendered: 68
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 9`] = ` +" +

Counter

numRendered: 50
Count: 5
numRendered: 52
Count: 5

Person

numRendered: 74
First Name:
Last Name:
Age:
numRendered: 76
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 10`] = ` +" +

Counter

numRendered: 50
Count: 5
numRendered: 52
Count: 5

Person

numRendered: 82
First Name:
Last Name:
Age:
numRendered: 84
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 11`] = ` +" +

Counter

numRendered: 50
Count: 5
numRendered: 52
Count: 5

Person

numRendered: 90
First Name:
Last Name:
Age:
numRendered: 92
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 12`] = ` +" +

Counter

numRendered: 50
Count: 5
numRendered: 52
Count: 5

Person

numRendered: 98
First Name:
Last Name:
Age:
numRendered: 100
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 13`] = ` +" +

Counter

numRendered: 50
Count: 5
numRendered: 52
Count: 5

Person

numRendered: 106
First Name:
Last Name:
Age:
numRendered: 108
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 14`] = ` +" +

Counter

numRendered: 50
Count: 5
numRendered: 52
Count: 5

Person

numRendered: 114
First Name:
Last Name:
Age:
numRendered: 116
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`03_usestate > should work with recorded events 15`] = ` +" +

Counter

numRendered: 50
Count: 5
numRendered: 52
Count: 5

Person

numRendered: 122
First Name:
Last Name:
Age:
numRendered: 124
First Name:
Last Name:
Age:
+ + +" +`; diff --git a/tests/e2e/__snapshots__/04_selector.ts.snap b/tests/e2e/__snapshots__/04_selector.ts.snap new file mode 100644 index 00000000..e49ec5d9 --- /dev/null +++ b/tests/e2e/__snapshots__/04_selector.ts.snap @@ -0,0 +1,113 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`04_selector > should work with recorded events 1`] = ` +" +

Counter

numRendered: 14
Count: 1
numRendered: 16
Count: 1

Person

numRendered: 2
First Name:
Last Name:
Age:
numRendered: 4
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 2`] = ` +" +

Counter

numRendered: 22
Count: 0
numRendered: 24
Count: 0

Person

numRendered: 2
First Name:
Last Name:
Age:
numRendered: 4
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 3`] = ` +" +

Counter

numRendered: 30
Count: 1
numRendered: 32
Count: 1

Person

numRendered: 2
First Name:
Last Name:
Age:
numRendered: 4
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 4`] = ` +" +

Counter

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Person

numRendered: 2
First Name:
Last Name:
Age:
numRendered: 4
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 5`] = ` +" +

Counter

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Person

numRendered: 2
First Name:
Last Name:
Age:
numRendered: 4
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 6`] = ` +" +

Counter

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Person

numRendered: 46
First Name:
Last Name:
Age:
numRendered: 48
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 7`] = ` +" +

Counter

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Person

numRendered: 54
First Name:
Last Name:
Age:
numRendered: 56
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 8`] = ` +" +

Counter

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Person

numRendered: 62
First Name:
Last Name:
Age:
numRendered: 64
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 9`] = ` +" +

Counter

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Person

numRendered: 70
First Name:
Last Name:
Age:
numRendered: 72
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 10`] = ` +" +

Counter

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Person

numRendered: 78
First Name:
Last Name:
Age:
numRendered: 80
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 11`] = ` +" +

Counter

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Person

numRendered: 86
First Name:
Last Name:
Age:
numRendered: 88
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 12`] = ` +" +

Counter

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Person

numRendered: 94
First Name:
Last Name:
Age:
numRendered: 96
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 13`] = ` +" +

Counter

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Person

numRendered: 102
First Name:
Last Name:
Age:
numRendered: 104
First Name:
Last Name:
Age:
+ + +" +`; + +exports[`04_selector > should work with recorded events 14`] = ` +" +

Counter

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Person

numRendered: 110
First Name:
Last Name:
Age:
numRendered: 112
First Name:
Last Name:
Age:
+ + +" +`; diff --git a/tests/e2e/__snapshots__/05_container.ts.snap b/tests/e2e/__snapshots__/05_container.ts.snap new file mode 100644 index 00000000..0b378b78 --- /dev/null +++ b/tests/e2e/__snapshots__/05_container.ts.snap @@ -0,0 +1,161 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`05_container > should work with recorded events 1`] = ` +" +

First container

numRendered: 30
Count: 1
numRendered: 32
Count: 1

Second container

numRendered: 6
Count: 0
numRendered: 8
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 2`] = ` +" +

First container

numRendered: 38
Count: 0
numRendered: 40
Count: 0

Second container

numRendered: 6
Count: 0
numRendered: 8
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 3`] = ` +" +

First container

numRendered: 46
Count: -1
numRendered: 48
Count: -1

Second container

numRendered: 6
Count: 0
numRendered: 8
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 4`] = ` +" +

First container

numRendered: 54
Count: 0
numRendered: 56
Count: 0

Second container

numRendered: 6
Count: 0
numRendered: 8
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 5`] = ` +" +

First container

numRendered: 62
Count: 1
numRendered: 64
Count: 1

Second container

numRendered: 6
Count: 0
numRendered: 8
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 6`] = ` +" +

First container

numRendered: 70
Count: 2
numRendered: 72
Count: 2

Second container

numRendered: 6
Count: 0
numRendered: 8
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 7`] = ` +" +

First container

numRendered: 78
Count: 1
numRendered: 80
Count: 1

Second container

numRendered: 6
Count: 0
numRendered: 8
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 8`] = ` +" +

First container

numRendered: 86
Count: 0
numRendered: 88
Count: 0

Second container

numRendered: 6
Count: 0
numRendered: 8
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 9`] = ` +" +

First container

numRendered: 94
Count: -1
numRendered: 96
Count: -1

Second container

numRendered: 6
Count: 0
numRendered: 8
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 10`] = ` +" +

First container

numRendered: 102
Count: -2
numRendered: 104
Count: -2

Second container

numRendered: 6
Count: 0
numRendered: 8
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 11`] = ` +" +

First container

numRendered: 102
Count: -2
numRendered: 104
Count: -2

Second container

numRendered: 110
Count: 1
numRendered: 112
Count: 1
+ + +" +`; + +exports[`05_container > should work with recorded events 12`] = ` +" +

First container

numRendered: 102
Count: -2
numRendered: 104
Count: -2

Second container

numRendered: 118
Count: 0
numRendered: 120
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 13`] = ` +" +

First container

numRendered: 102
Count: -2
numRendered: 104
Count: -2

Second container

numRendered: 126
Count: -1
numRendered: 128
Count: -1
+ + +" +`; + +exports[`05_container > should work with recorded events 14`] = ` +" +

First container

numRendered: 102
Count: -2
numRendered: 104
Count: -2

Second container

numRendered: 134
Count: 0
numRendered: 136
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 15`] = ` +" +

First container

numRendered: 102
Count: -2
numRendered: 104
Count: -2

Second container

numRendered: 142
Count: 1
numRendered: 144
Count: 1
+ + +" +`; + +exports[`05_container > should work with recorded events 16`] = ` +" +

First container

numRendered: 102
Count: -2
numRendered: 104
Count: -2

Second container

numRendered: 150
Count: 2
numRendered: 152
Count: 2
+ + +" +`; + +exports[`05_container > should work with recorded events 17`] = ` +" +

First container

numRendered: 102
Count: -2
numRendered: 104
Count: -2

Second container

numRendered: 158
Count: 1
numRendered: 160
Count: 1
+ + +" +`; + +exports[`05_container > should work with recorded events 18`] = ` +" +

First container

numRendered: 102
Count: -2
numRendered: 104
Count: -2

Second container

numRendered: 166
Count: 0
numRendered: 168
Count: 0
+ + +" +`; + +exports[`05_container > should work with recorded events 19`] = ` +" +

First container

numRendered: 102
Count: -2
numRendered: 104
Count: -2

Second container

numRendered: 174
Count: -1
numRendered: 176
Count: -1
+ + +" +`; + +exports[`05_container > should work with recorded events 20`] = ` +" +

First container

numRendered: 102
Count: -2
numRendered: 104
Count: -2

Second container

numRendered: 182
Count: -2
numRendered: 184
Count: -2
+ + +" +`; diff --git a/tests/e2e/__snapshots__/06_customhook.ts.snap b/tests/e2e/__snapshots__/06_customhook.ts.snap new file mode 100644 index 00000000..cf2a213f --- /dev/null +++ b/tests/e2e/__snapshots__/06_customhook.ts.snap @@ -0,0 +1,65 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`06_customhook > should work with recorded events 1`] = ` +" +
Count: 1
Count: 1
+ + +" +`; + +exports[`06_customhook > should work with recorded events 2`] = ` +" +
Count: 2
Count: 2
+ + +" +`; + +exports[`06_customhook > should work with recorded events 3`] = ` +" +
Count: 1
Count: 1
+ + +" +`; + +exports[`06_customhook > should work with recorded events 4`] = ` +" +
Count: 0
Count: 0
+ + +" +`; + +exports[`06_customhook > should work with recorded events 5`] = ` +" +
Count: 1
Count: 1
+ + +" +`; + +exports[`06_customhook > should work with recorded events 6`] = ` +" +
Count: 2
Count: 2
+ + +" +`; + +exports[`06_customhook > should work with recorded events 7`] = ` +" +
Count: 1
Count: 1
+ + +" +`; + +exports[`06_customhook > should work with recorded events 8`] = ` +" +
Count: 0
Count: 0
+ + +" +`; diff --git a/tests/e2e/__snapshots__/07_todolist.ts.snap b/tests/e2e/__snapshots__/07_todolist.ts.snap new file mode 100644 index 00000000..2f3f81fa --- /dev/null +++ b/tests/e2e/__snapshots__/07_todolist.ts.snap @@ -0,0 +1,225 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`07_todolist > should work with recorded events 1`] = ` +" +
    Show:
    + + +" +`; + +exports[`07_todolist > should work with recorded events 2`] = ` +" +
      Show:
      + + +" +`; + +exports[`07_todolist > should work with recorded events 3`] = ` +" +
        Show:
        + + +" +`; + +exports[`07_todolist > should work with recorded events 4`] = ` +" +
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 5`] = ` +" +
          • aaa
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 6`] = ` +" +
          • aaa
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 7`] = ` +" +
          • aaa
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 8`] = ` +" +
          • aaa
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 9`] = ` +" +
          • aaa
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 10`] = ` +" +
          • aaa
          • bbb
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 11`] = ` +" +
          • aaa
          • bbb
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 12`] = ` +" +
          • aaa
          • bbb
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 13`] = ` +" +
          • aaa
          • bbb
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 14`] = ` +" +
          • aaa
          • bbb
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 15`] = ` +" +
          • aaa
          • bbb
          • ccc
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 16`] = ` +" +
          • aaa
          • bbb
          • ccc
          Show:
          + + +" +`; + +exports[`07_todolist > should work with recorded events 17`] = ` +" +
            Show:
            + + +" +`; + +exports[`07_todolist > should work with recorded events 18`] = ` +" +
            • aaa
            • bbb
            • ccc
            Show:
            + + +" +`; + +exports[`07_todolist > should work with recorded events 19`] = ` +" +
            • aaa
            • bbb
            • ccc
            Show:
            + + +" +`; + +exports[`07_todolist > should work with recorded events 20`] = ` +" +
            • aaa
            • ccc
            Show:
            + + +" +`; + +exports[`07_todolist > should work with recorded events 21`] = ` +" +
            • bbb
            Show:
            + + +" +`; + +exports[`07_todolist > should work with recorded events 22`] = ` +" +
            • aaa
            • bbb
            • ccc
            Show:
            + + +" +`; + +exports[`07_todolist > should work with recorded events 23`] = ` +" +
            • aaa
            • bbb
            • ccc
            Show:
            + + +" +`; + +exports[`07_todolist > should work with recorded events 24`] = ` +" +
            • aaa
            Show:
            + + +" +`; + +exports[`07_todolist > should work with recorded events 25`] = ` +" +
            • bbb
            • ccc
            Show:
            + + +" +`; + +exports[`07_todolist > should work with recorded events 26`] = ` +" +
            • ccc
            Show:
            + + +" +`; + +exports[`07_todolist > should work with recorded events 27`] = ` +" +
            • aaa
            • bbb
            • ccc
            Show:
            + + +" +`; + +exports[`07_todolist > should work with recorded events 28`] = ` +" +
            • aaa
            • bbb
            Show:
            + + +" +`; diff --git a/tests/e2e/__snapshots__/08_comparison.ts.snap b/tests/e2e/__snapshots__/08_comparison.ts.snap new file mode 100644 index 00000000..ccb3f1c4 --- /dev/null +++ b/tests/e2e/__snapshots__/08_comparison.ts.snap @@ -0,0 +1,89 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`08_comparison > should work with recorded events 1`] = ` +" +

            Naive Context

            First Name:(renders:1)
            Family Name:(renders:1)

            Split Context

            First Name:(renders:1)
            Family Name:(renders:1)

            Context with React.memo

            First Name:(renders:1)
            Family Name:(renders:1)

            Context with useMemo

            First Name:(renders:2)
            Family Name:(renders:2)

            react-tracked

            First Name:(renders:1)
            Family Name:(renders:1)
            + + +" +`; + +exports[`08_comparison > should work with recorded events 2`] = ` +" +

            Naive Context

            First Name:(renders:3)
            Family Name:(renders:3)

            Split Context

            First Name:(renders:1)
            Family Name:(renders:1)

            Context with React.memo

            First Name:(renders:1)
            Family Name:(renders:1)

            Context with useMemo

            First Name:(renders:2)
            Family Name:(renders:2)

            react-tracked

            First Name:(renders:1)
            Family Name:(renders:1)
            + + +" +`; + +exports[`08_comparison > should work with recorded events 3`] = ` +" +

            Naive Context

            First Name:(renders:4)
            Family Name:(renders:4)

            Split Context

            First Name:(renders:1)
            Family Name:(renders:1)

            Context with React.memo

            First Name:(renders:1)
            Family Name:(renders:1)

            Context with useMemo

            First Name:(renders:2)
            Family Name:(renders:2)

            react-tracked

            First Name:(renders:1)
            Family Name:(renders:1)
            + + +" +`; + +exports[`08_comparison > should work with recorded events 4`] = ` +" +

            Naive Context

            First Name:(renders:4)
            Family Name:(renders:4)

            Split Context

            First Name:(renders:3)
            Family Name:(renders:1)

            Context with React.memo

            First Name:(renders:1)
            Family Name:(renders:1)

            Context with useMemo

            First Name:(renders:2)
            Family Name:(renders:2)

            react-tracked

            First Name:(renders:1)
            Family Name:(renders:1)
            + + +" +`; + +exports[`08_comparison > should work with recorded events 5`] = ` +" +

            Naive Context

            First Name:(renders:4)
            Family Name:(renders:4)

            Split Context

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with React.memo

            First Name:(renders:1)
            Family Name:(renders:1)

            Context with useMemo

            First Name:(renders:2)
            Family Name:(renders:2)

            react-tracked

            First Name:(renders:1)
            Family Name:(renders:1)
            + + +" +`; + +exports[`08_comparison > should work with recorded events 6`] = ` +" +

            Naive Context

            First Name:(renders:4)
            Family Name:(renders:4)

            Split Context

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with React.memo

            First Name:(renders:3)
            Family Name:(renders:1)

            Context with useMemo

            First Name:(renders:2)
            Family Name:(renders:2)

            react-tracked

            First Name:(renders:1)
            Family Name:(renders:1)
            + + +" +`; + +exports[`08_comparison > should work with recorded events 7`] = ` +" +

            Naive Context

            First Name:(renders:4)
            Family Name:(renders:4)

            Split Context

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with React.memo

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with useMemo

            First Name:(renders:2)
            Family Name:(renders:2)

            react-tracked

            First Name:(renders:1)
            Family Name:(renders:1)
            + + +" +`; + +exports[`08_comparison > should work with recorded events 8`] = ` +" +

            Naive Context

            First Name:(renders:4)
            Family Name:(renders:4)

            Split Context

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with React.memo

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with useMemo

            First Name:(renders:4)
            Family Name:(renders:2)

            react-tracked

            First Name:(renders:1)
            Family Name:(renders:1)
            + + +" +`; + +exports[`08_comparison > should work with recorded events 9`] = ` +" +

            Naive Context

            First Name:(renders:4)
            Family Name:(renders:4)

            Split Context

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with React.memo

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with useMemo

            First Name:(renders:4)
            Family Name:(renders:4)

            react-tracked

            First Name:(renders:1)
            Family Name:(renders:1)
            + + +" +`; + +exports[`08_comparison > should work with recorded events 10`] = ` +" +

            Naive Context

            First Name:(renders:4)
            Family Name:(renders:4)

            Split Context

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with React.memo

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with useMemo

            First Name:(renders:4)
            Family Name:(renders:4)

            react-tracked

            First Name:(renders:3)
            Family Name:(renders:1)
            + + +" +`; + +exports[`08_comparison > should work with recorded events 11`] = ` +" +

            Naive Context

            First Name:(renders:4)
            Family Name:(renders:4)

            Split Context

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with React.memo

            First Name:(renders:3)
            Family Name:(renders:3)

            Context with useMemo

            First Name:(renders:4)
            Family Name:(renders:4)

            react-tracked

            First Name:(renders:3)
            Family Name:(renders:3)
            + + +" +`; diff --git a/tests/e2e/__snapshots__/09_reactmemo.ts.snap b/tests/e2e/__snapshots__/09_reactmemo.ts.snap new file mode 100644 index 00000000..ceeb9bbd --- /dev/null +++ b/tests/e2e/__snapshots__/09_reactmemo.ts.snap @@ -0,0 +1,49 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`09_reactmemo > should work with recorded events 1`] = ` +" +
            + + +" +`; + +exports[`09_reactmemo > should work with recorded events 2`] = ` +" +
            + + +" +`; + +exports[`09_reactmemo > should work with recorded events 3`] = ` +" +
            + + +" +`; + +exports[`09_reactmemo > should work with recorded events 4`] = ` +" +
            + + +" +`; + +exports[`09_reactmemo > should work with recorded events 5`] = ` +" +
            + + +" +`; + +exports[`09_reactmemo > should work with recorded events 6`] = ` +" +
            + + +" +`; diff --git a/tests/e2e/__snapshots__/10_untracked.ts.snap b/tests/e2e/__snapshots__/10_untracked.ts.snap new file mode 100644 index 00000000..0e5073aa --- /dev/null +++ b/tests/e2e/__snapshots__/10_untracked.ts.snap @@ -0,0 +1,89 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`10_untracked > should work with recorded events 1`] = ` +" +
            + + +" +`; + +exports[`10_untracked > should work with recorded events 2`] = ` +" +
            + + +" +`; + +exports[`10_untracked > should work with recorded events 3`] = ` +" +
            + + +" +`; + +exports[`10_untracked > should work with recorded events 4`] = ` +" +
            + + +" +`; + +exports[`10_untracked > should work with recorded events 5`] = ` +" +
            + + +" +`; + +exports[`10_untracked > should work with recorded events 6`] = ` +" +
            + + +" +`; + +exports[`10_untracked > should work with recorded events 7`] = ` +" +
            + + +" +`; + +exports[`10_untracked > should work with recorded events 8`] = ` +" +
            + + +" +`; + +exports[`10_untracked > should work with recorded events 9`] = ` +" +
            + + +" +`; + +exports[`10_untracked > should work with recorded events 10`] = ` +" +
            + + +" +`; + +exports[`10_untracked > should work with recorded events 11`] = ` +" +
            + + +" +`; diff --git a/tests/e2e/__snapshots__/11_form.ts.snap b/tests/e2e/__snapshots__/11_form.ts.snap new file mode 100644 index 00000000..aabe61b9 --- /dev/null +++ b/tests/e2e/__snapshots__/11_form.ts.snap @@ -0,0 +1,89 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`11_form > should work with recorded events 1`] = ` +" +
            numRendered: 42

            First Name

            numRendered: 44
            First Name:name is required

            Family Name

            numRendered: 46
            Family Name:name is required

            Gender

            numRendered: 38
            Gender:

            Teenager

            numRendered: 40
            Teenager:
            Stress Test
            + + +" +`; + +exports[`11_form > should work with recorded events 2`] = ` +" +
            numRendered: 62

            First Name

            numRendered: 64
            First Name:

            Family Name

            numRendered: 46
            Family Name:name is required

            Gender

            numRendered: 38
            Gender:

            Teenager

            numRendered: 40
            Teenager:
            Stress Test
            + + +" +`; + +exports[`11_form > should work with recorded events 3`] = ` +" +
            numRendered: 82

            First Name

            numRendered: 84
            First Name:

            Family Name

            numRendered: 46
            Family Name:name is required

            Gender

            numRendered: 38
            Gender:

            Teenager

            numRendered: 40
            Teenager:
            Stress Test
            + + +" +`; + +exports[`11_form > should work with recorded events 4`] = ` +" +
            numRendered: 102

            First Name

            numRendered: 104
            First Name:

            Family Name

            numRendered: 46
            Family Name:name is required

            Gender

            numRendered: 38
            Gender:

            Teenager

            numRendered: 40
            Teenager:
            Stress Test
            + + +" +`; + +exports[`11_form > should work with recorded events 5`] = ` +" +
            numRendered: 122

            First Name

            numRendered: 104
            First Name:

            Family Name

            numRendered: 126
            Family Name:

            Gender

            numRendered: 38
            Gender:

            Teenager

            numRendered: 40
            Teenager:
            Stress Test
            + + +" +`; + +exports[`11_form > should work with recorded events 6`] = ` +" +
            numRendered: 142

            First Name

            numRendered: 104
            First Name:

            Family Name

            numRendered: 146
            Family Name:

            Gender

            numRendered: 38
            Gender:

            Teenager

            numRendered: 40
            Teenager:
            Stress Test
            + + +" +`; + +exports[`11_form > should work with recorded events 7`] = ` +" +
            numRendered: 162

            First Name

            numRendered: 104
            First Name:

            Family Name

            numRendered: 166
            Family Name:

            Gender

            numRendered: 38
            Gender:

            Teenager

            numRendered: 40
            Teenager:
            Stress Test
            + + +" +`; + +exports[`11_form > should work with recorded events 8`] = ` +" +
            numRendered: 162

            First Name

            numRendered: 104
            First Name:

            Family Name

            numRendered: 166
            Family Name:

            Gender

            numRendered: 38
            Gender:

            Teenager

            numRendered: 40
            Teenager:
            Stress Test
            + + +" +`; + +exports[`11_form > should work with recorded events 9`] = ` +" +
            numRendered: 182

            First Name

            numRendered: 104
            First Name:

            Family Name

            numRendered: 166
            Family Name:

            Gender

            numRendered: 188
            Gender:

            Teenager

            numRendered: 40
            Teenager:
            Stress Test
            + + +" +`; + +exports[`11_form > should work with recorded events 10`] = ` +" +
            numRendered: 202

            First Name

            numRendered: 104
            First Name:

            Family Name

            numRendered: 166
            Family Name:

            Gender

            numRendered: 188
            Gender:

            Teenager

            numRendered: 210
            Teenager:
            Stress Test
            + + +" +`; + +exports[`11_form > should work with recorded events 11`] = ` +" +
            numRendered: 202

            First Name

            numRendered: 104
            First Name:

            Family Name

            numRendered: 166
            Family Name:

            Gender

            numRendered: 188
            Gender:

            Teenager

            numRendered: 210
            Teenager:
            Stress Test
            + + +" +`; diff --git a/tests/e2e/__snapshots__/12_async.ts.snap b/tests/e2e/__snapshots__/12_async.ts.snap new file mode 100644 index 00000000..12b47e1a --- /dev/null +++ b/tests/e2e/__snapshots__/12_async.ts.snap @@ -0,0 +1,41 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`12_async > should work with recorded events 1`] = ` +" +

            Person

            User ID:
            connecting...

            Counter

            Count: 0
            + + +" +`; + +exports[`12_async > should work with recorded events 2`] = ` +" +

            Person

            User ID:
            First Name: Emma

            Counter

            Count: 0
            + + +" +`; + +exports[`12_async > should work with recorded events 3`] = ` +" +

            Person

            User ID:
            First Name: Emma

            Counter

            Count: 1
            + + +" +`; + +exports[`12_async > should work with recorded events 4`] = ` +" +

            Person

            User ID:
            First Name: Emma

            Counter

            Count: 1
            + + +" +`; + +exports[`12_async > should work with recorded events 5`] = ` +" +

            Person

            User ID:
            First Name: Emma

            Counter

            Count: 0
            + + +" +`; diff --git a/tests/e2e/__snapshots__/13_saga.ts.snap b/tests/e2e/__snapshots__/13_saga.ts.snap new file mode 100644 index 00000000..50f62cc9 --- /dev/null +++ b/tests/e2e/__snapshots__/13_saga.ts.snap @@ -0,0 +1,41 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`13_saga > should work with recorded events 1`] = ` +" +

            Person

            User ID:
            connecting...

            Counter

            Count: 0
            + + +" +`; + +exports[`13_saga > should work with recorded events 2`] = ` +" +

            Person

            User ID:
            First Name: Emma

            Counter

            Count: 0
            + + +" +`; + +exports[`13_saga > should work with recorded events 3`] = ` +" +

            Person

            User ID:
            First Name: Emma

            Counter

            Count: 1
            + + +" +`; + +exports[`13_saga > should work with recorded events 4`] = ` +" +

            Person

            User ID:
            First Name: Emma

            Counter

            Count: 1
            + + +" +`; + +exports[`13_saga > should work with recorded events 5`] = ` +" +

            Person

            User ID:
            First Name: Emma

            Counter

            Count: 0
            + + +" +`; diff --git a/tests/e2e/__snapshots__/14_dynamic.ts.snap b/tests/e2e/__snapshots__/14_dynamic.ts.snap new file mode 100644 index 00000000..8473ae3e --- /dev/null +++ b/tests/e2e/__snapshots__/14_dynamic.ts.snap @@ -0,0 +1,97 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`14_dynamic > should work with recorded events 1`] = ` +" +

            Counter

            numRendered: 18
            Count: 1
            numRendered: 20
            Count: 1

            Person

            numRendered: 2
            First Name:
            Age:
            numRendered: 4
            First Name:
            Age:
            + + +" +`; + +exports[`14_dynamic > should work with recorded events 2`] = ` +" +

            Counter

            numRendered: 18
            Count: 1
            numRendered: 20
            Count: 1

            Person

            numRendered: 2
            First Name:
            Age:
            numRendered: 4
            First Name:
            Age:
            + + +" +`; + +exports[`14_dynamic > should work with recorded events 3`] = ` +" +

            Counter

            numRendered: 22
            Count: 0
            numRendered: 20
            Count: 1

            Person

            numRendered: 2
            First Name:
            Age:
            numRendered: 4
            First Name:
            Age:
            + + +" +`; + +exports[`14_dynamic > should work with recorded events 4`] = ` +" +

            Counter

            numRendered: 28
            Count: -1
            numRendered: 20
            Count: 1

            Person

            numRendered: 2
            First Name:
            Age:
            numRendered: 4
            First Name:
            Age:
            + + +" +`; + +exports[`14_dynamic > should work with recorded events 5`] = ` +" +

            Counter

            numRendered: 28
            Count: -1
            numRendered: 20
            Count: 1

            Person

            numRendered: 2
            First Name:
            Age:
            numRendered: 4
            First Name:
            Age:
            + + +" +`; + +exports[`14_dynamic > should work with recorded events 6`] = ` +" +

            Counter

            numRendered: 28
            Count: -1
            numRendered: 33
            Count: -1

            Person

            numRendered: 2
            First Name:
            Age:
            numRendered: 4
            First Name:
            Age:
            + + +" +`; + +exports[`14_dynamic > should work with recorded events 7`] = ` +" +

            Counter

            numRendered: 28
            Count: -1
            numRendered: 33
            Count: -1

            Person

            numRendered: 2
            First Name:
            Age:
            numRendered: 4
            First Name:
            Age:
            + + +" +`; + +exports[`14_dynamic > should work with recorded events 8`] = ` +" +

            Counter

            numRendered: 28
            Count: -1
            numRendered: 33
            Count: -1

            Person

            numRendered: 34
            First Name:
            Age:
            numRendered: 36
            First Name:
            Age:
            + + +" +`; + +exports[`14_dynamic > should work with recorded events 9`] = ` +" +

            Counter

            numRendered: 28
            Count: -1
            numRendered: 33
            Count: -1

            Person

            numRendered: 38
            Last Name:
            Age:
            numRendered: 36
            First Name:
            Age:
            + + +" +`; + +exports[`14_dynamic > should work with recorded events 10`] = ` +" +

            Counter

            numRendered: 28
            Count: -1
            numRendered: 33
            Count: -1

            Person

            numRendered: 38
            Last Name:
            Age:
            numRendered: 36
            First Name:
            Age:
            + + +" +`; + +exports[`14_dynamic > should work with recorded events 11`] = ` +" +

            Counter

            numRendered: 28
            Count: -1
            numRendered: 33
            Count: -1

            Person

            numRendered: 44
            Last Name:
            Age:
            numRendered: 36
            First Name:
            Age:
            + + +" +`; + +exports[`14_dynamic > should work with recorded events 12`] = ` +" +

            Counter

            numRendered: 28
            Count: -1
            numRendered: 33
            Count: -1

            Person

            numRendered: 44
            Last Name:
            Age:
            numRendered: 49
            Last Name:
            Age:
            + + +" +`; diff --git a/tests/e2e/__snapshots__/15_reactmemoref.ts.snap b/tests/e2e/__snapshots__/15_reactmemoref.ts.snap new file mode 100644 index 00000000..698f9458 --- /dev/null +++ b/tests/e2e/__snapshots__/15_reactmemoref.ts.snap @@ -0,0 +1,49 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`15_reactmemoref > should work with recorded events 1`] = ` +" +
            + + +" +`; + +exports[`15_reactmemoref > should work with recorded events 2`] = ` +" +
            + + +" +`; + +exports[`15_reactmemoref > should work with recorded events 3`] = ` +" +
            + + +" +`; + +exports[`15_reactmemoref > should work with recorded events 4`] = ` +" +
            + + +" +`; + +exports[`15_reactmemoref > should work with recorded events 5`] = ` +" +
            + + +" +`; + +exports[`15_reactmemoref > should work with recorded events 6`] = ` +" +
            + + +" +`;