From 80e2bd66f54bca88a749d40784828d29bae8995f Mon Sep 17 00:00:00 2001 From: Jacob Scearcy Date: Mon, 6 May 2024 06:42:35 -0700 Subject: =?UTF-8?q?=F0=9F=94=80=20Use=20vitest=20for=20runtime/vdom=20test?= =?UTF-8?q?ing.=20(#124)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ๐Ÿงช move tests into test directory, bump birdie to ignore non-gleam files * implement feedback * add comments, update doc --- vitest_snapshots/02-interactivity.test.js.snap | 19 +++++++++ vitest_snapshots/vdom.ffi.test.js.snap | 55 ++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 vitest_snapshots/02-interactivity.test.js.snap create mode 100644 vitest_snapshots/vdom.ffi.test.js.snap (limited to 'vitest_snapshots') diff --git a/vitest_snapshots/02-interactivity.test.js.snap b/vitest_snapshots/02-interactivity.test.js.snap new file mode 100644 index 0000000..c7c7ce2 --- /dev/null +++ b/vitest_snapshots/02-interactivity.test.js.snap @@ -0,0 +1,19 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`counter example > should render initially 1`] = ` +" + + + + + + + ๐Ÿšง {app_name} + + + + +

0

+ +" +`; diff --git a/vitest_snapshots/vdom.ffi.test.js.snap b/vitest_snapshots/vdom.ffi.test.js.snap new file mode 100644 index 0000000..fa11c73 --- /dev/null +++ b/vitest_snapshots/vdom.ffi.test.js.snap @@ -0,0 +1,55 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`vdom morph > should render smoke test with vdom morph > smoke_test 1`] = ` +" + + + + + + + ๐Ÿšง {app_name} + + + + +

smoke test

+ +" +`; + +exports[`vdom morph > should render using vdom morph with fragments > fragment_test 1`] = ` +" + + + + + + + ๐Ÿšง {app_name} + + + + +
Person NamePerson Age
Person One18
Person Two24
Person Three30
+ +" +`; + +exports[`vdom morph > should render using vdom morph with keys > fragment_test 1`] = ` +" + + + + + + + ๐Ÿšง {app_name} + + + + + + +" +`; -- cgit v1.2.3