diff --git a/minimal-app/package.json b/minimal-app/package.json index e726731eb68a128fd9f540f700730591c8954892..b20a0e94f8ba1cf22ca83818638b368642ba345e 100644 --- a/minimal-app/package.json +++ b/minimal-app/package.json @@ -1,7 +1,7 @@ { - "name": "@unlsoft/minimal-app", + "name": "myapp", "version": "1.0.0", - "description": "A minimal app to be used as starter code for labs and homework.", + "description": "Working On myapp.", "private": true, "license": "UNLICENSED", "scripts": { diff --git a/minimal-app/src/__snapshots__/app.test.js.snap b/minimal-app/src/__snapshots__/app.test.js.snap index ce50593a1264fefe9e1e6f5b2728f70ba16a88e5..6c4af2a43dfc3c664bd87d48435c0d194dd57066 100644 --- a/minimal-app/src/__snapshots__/app.test.js.snap +++ b/minimal-app/src/__snapshots__/app.test.js.snap @@ -1,15 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`the app has one labeled button that displays the value from the store 1`] = ` -<div> - <label> - Taps - : - <button - class="blue" - > - 9999 - </button> - </label> -</div> -`; +exports[`the app has one labeled button that displays the value from the store 1`] = `<div />`; diff --git a/minimal-app/src/app.js b/minimal-app/src/app.js index e875b5f1efaa2f9d67b50f129e9b056491157407..6cdd6f50397d60636945f2405d6f0857a811bf6f 100644 --- a/minimal-app/src/app.js +++ b/minimal-app/src/app.js @@ -1,11 +1,11 @@ import { Routes, Route } from 'react-router-dom'; -import { Counter } from './features/counter/counter.js'; +// import { Counter } from './features/counter/counter.js'; export function App() { const page = <> - <Counter label={'Taps'} /> + {/* <Counter label={'Taps'} /> */} </>; return ( <Routes> diff --git a/minimal-app/src/app.test.js b/minimal-app/src/app.test.js index cea18d811df2753271a4762fa0c1dfe567ae5755..bb8f5c0b01dfcb9c14533594c27056bc13e44f65 100644 --- a/minimal-app/src/app.test.js +++ b/minimal-app/src/app.test.js @@ -4,16 +4,16 @@ import { MemoryRouter as Router } from 'react-router-dom'; import { App } from './app.js'; -import { - selectValue, -} from './features/counter/counterSlice.js'; -jest.mock('./features/counter/counterSlice.js', () => ({ - selectValue: jest.fn().mockName('selectValue'), -})); +// import { +// selectValue, +// } from './features/counter/counterSlice.js'; +// jest.mock('./features/counter/counterSlice.js', () => ({ +// selectValue: jest.fn().mockName('selectValue'), +// })); describe('the app', () => { test('has one labeled button that displays the value from the store', () => { - selectValue.mockReturnValue(9999); + // selectValue.mockReturnValue(9999); const { container } = render( <Router initialEntries={['/']}> <App /> diff --git a/minimal-app/src/app/store.js b/minimal-app/src/app/store.js index ff522e191c94a67fbc4f4aa5164fcd9fb6511ca9..94e9e8e15bea483eaab231ffc92f363a6a835132 100644 --- a/minimal-app/src/app/store.js +++ b/minimal-app/src/app/store.js @@ -1,9 +1,9 @@ import { configureStore } from '@reduxjs/toolkit'; -import counterSlice from '../features/counter/counterSlice.js'; +// import counterSlice from '../features/counter/counterSlice.js'; export const store = configureStore({ reducer: { - [counterSlice.name]: counterSlice.reducer, + // [counterSlice.name]: counterSlice.reducer, }, });