From ad2ceb6df979cff60e05b088a17ee29dfb95a9ff Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Fri, 24 Apr 2020 18:11:04 -0500 Subject: Use Jest as the test framework - Remove mocha, chai, sinon and setup.js - Add snapshot test to ApplicationHeader spec and remove skip nav link test - Add an update snapshot test that can be run if a page changes and the snapshot needs to be updated - Remove tight coupling of application structure and test in ApplicationHeader spec We are changing to Jest for a few reasons: 1. Jest is the testing framework used by most Vue applications and has robust documentation 2. It requires less configuration and works out of the box 3. It includes the ability to perform snapshot testing of rendered UI, which is much easier to maintain than trying to test specific UI elements. Signed-off-by: Derick Montague Change-Id: I7bca3613991ebae1fd464fa3a60f079d044ed7b4 --- tests/unit/__snapshots__/AppHeader.spec.js.snap | 174 ++++++++++++++++++++++++ 1 file changed, 174 insertions(+) create mode 100644 tests/unit/__snapshots__/AppHeader.spec.js.snap (limited to 'tests/unit/__snapshots__/AppHeader.spec.js.snap') diff --git a/tests/unit/__snapshots__/AppHeader.spec.js.snap b/tests/unit/__snapshots__/AppHeader.spec.js.snap new file mode 100644 index 00000000..f8f22140 --- /dev/null +++ b/tests/unit/__snapshots__/AppHeader.spec.js.snap @@ -0,0 +1,174 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AppHeader.vue should render correctly 1`] = ` +
+ +
+`; -- cgit v1.2.3