diff --git a/apps/backoffice/web/src/app/app.spec.tsx b/apps/backoffice/web/src/app/app.spec.tsx deleted file mode 100644 index c0342bf..0000000 --- a/apps/backoffice/web/src/app/app.spec.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { render } from '@testing-library/react'; - -import { BrowserRouter } from 'react-router-dom'; - -import App from './app'; - -describe('App', () => { - it('should render successfully', () => { - const { baseElement } = render( - - - - ); - expect(baseElement).toBeTruthy(); - }); - - it('should have a greeting as the title', () => { - const { getByText } = render( - - - - ); - expect(getByText(/Welcome web-backoffice/gi)).toBeTruthy(); - }); -}); diff --git a/apps/backoffice/web/src/app/app.stories.tsx b/apps/backoffice/web/src/app/app.stories.tsx deleted file mode 100644 index ad04e3c..0000000 --- a/apps/backoffice/web/src/app/app.stories.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import type { Meta, StoryObj } from '@storybook/react'; -import { App } from './app'; - -import { within } from '@storybook/testing-library'; -import { expect } from '@storybook/jest'; - -const meta: Meta = { - component: App, - title: 'App', -}; -export default meta; -type Story = StoryObj; - -export const Primary = { - args: {}, -}; - -export const Heading: Story = { - args: {}, - play: async ({ canvasElement }) => { - const canvas = within(canvasElement); - expect(canvas.getByText(/Welcome to App!/gi)).toBeTruthy(); - }, -}; diff --git a/apps/backoffice/web/src/app/app.tsx b/apps/backoffice/web/src/app/app.tsx deleted file mode 100644 index a9e80b3..0000000 --- a/apps/backoffice/web/src/app/app.tsx +++ /dev/null @@ -1,50 +0,0 @@ -import NxWelcome from './nx-welcome'; - -import { Route, Routes, Link } from 'react-router-dom'; - -export function App() { - return ( -
- - - {/* START: routes */} - {/* These routes and navigation have been generated for you */} - {/* Feel free to move and update them to fit your needs */} -
-
-
-
-
    -
  • - Home -
  • -
  • - Page 2 -
  • -
-
- - - This is the generated root route.{' '} - Click here for page 2. -
- } - /> - - Click here to go back to root page. - - } - /> - - {/* END: routes */} - - ); -} - -export default App; diff --git a/apps/backoffice/web/src/app/nx-welcome.stories.tsx b/apps/backoffice/web/src/app/nx-welcome.stories.tsx deleted file mode 100644 index 19e5229..0000000 --- a/apps/backoffice/web/src/app/nx-welcome.stories.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import type { Meta, StoryObj } from '@storybook/react'; -import { NxWelcome } from './nx-welcome'; - -import { within } from '@storybook/testing-library'; -import { expect } from '@storybook/jest'; - -const meta: Meta = { - component: NxWelcome, - title: 'NxWelcome', -}; -export default meta; -type Story = StoryObj; - -export const Primary = { - args: {}, -}; - -export const Heading: Story = { - args: {}, - play: async ({ canvasElement }) => { - const canvas = within(canvasElement); - expect(canvas.getByText(/Welcome to NxWelcome!/gi)).toBeTruthy(); - }, -}; diff --git a/apps/backoffice/web/src/app/nx-welcome.tsx b/apps/backoffice/web/src/app/nx-welcome.tsx deleted file mode 100644 index 6b518b9..0000000 --- a/apps/backoffice/web/src/app/nx-welcome.tsx +++ /dev/null @@ -1,886 +0,0 @@ -/* - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - This is a starter component and can be deleted. - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - Delete this file and get started with your project! - * * * * * * * * * * * * * * * * * * * * * * * * * * * * - */ -export function NxWelcome({ title }: { title: string }) { - return ( - <> -