Run npm run test npm run test shell: /usr/bin/bash -e {0} > @freecodecamp/classroom@0.0.0 test > jest . FAIL __tests__/components/modal.test.jsx ● Modal Component › renders header correctly expect(received).toMatchSnapshot() Snapshot name: `Modal Component renders header correctly 1` - Snapshot - 0 + Received + 10 @@ -1,6 +1,16 @@
+
+
+
+
+
+
{ 38 | const tree = renderer.create().toJSON(); > 39 | expect(tree).toMatchSnapshot(); | ^ 40 | }); 41 | it('renders whole form after header clicked', ()=> { 42 | const testRenderer = renderer.create(); at Object.toMatchSnapshot (__tests__/components/modal.test.jsx:39:18) ● Modal Component › renders whole form after header clicked expect(received).toMatchSnapshot() Snapshot name: `Modal Component renders whole form after header clicked 1` - Snapshot - 0 + Received + 10 @@ -1,6 +1,16 @@
+
+
+
+
+
+
49 | expect(tree).toMatchSnapshot(); | ^ 50 | }); 51 | }); 52 | at Object.toMatchSnapshot (__tests__/components/modal.test.jsx:49:18) › 2 snapshots failed. PASS __tests__/components/updateUserForm.test.jsx PASS __tests__/components/adminTable.test.jsx PASS __tests__/components/authButton.test.jsx PASS __tests__/components/dashtable_v2.test.jsx PASS __tests__/components/navbar.test.jsx Snapshot Summary › 2 snapshots failed from 1 test suite. Inspect your code changes or run `npm test -- -u` to update them. Test Suites: 1 failed, 5 passed, 6 total Tests: 2 failed, 8 passed, 10 total Snapshots: 2 failed, 6 passed, 8 total Time: 2.985 s Ran all test suites matching /./i. Error: Process completed with exit code 1.