mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 06:15:29 -04:00

This commit adds multiple unit jest tests for components and removes e2e tests. Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Signed-off-by: Philip Molares <philip.molares@udo.edu> Co-authored-by: Philip Molares <philip.molares@udo.edu>
32 lines
985 B
TypeScript
32 lines
985 B
TypeScript
/*
|
|
SPDX-FileCopyrightText: 2021 The HedgeDoc developers (see AUTHORS file)
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import type { AppProps } from 'next/app'
|
|
import { ErrorBoundary } from '../components/error-boundary/error-boundary'
|
|
import { ApplicationLoader } from '../components/application-loader/application-loader'
|
|
import '../../global-styles/dark.scss'
|
|
import '../../global-styles/index.scss'
|
|
import type { NextPage } from 'next'
|
|
import { BaseHead } from '../components/layout/base-head'
|
|
import { StoreProvider } from '../redux/store-provider'
|
|
|
|
/**
|
|
* The actual hedgedoc next js app.
|
|
* Provides necessary wrapper components to every page.
|
|
*/
|
|
const HedgeDocApp: NextPage<AppProps> = ({ Component, pageProps }: AppProps) => {
|
|
return (
|
|
<StoreProvider>
|
|
<BaseHead />
|
|
<ApplicationLoader>
|
|
<ErrorBoundary>
|
|
<Component {...pageProps} />
|
|
</ErrorBoundary>
|
|
</ApplicationLoader>
|
|
</StoreProvider>
|
|
)
|
|
}
|
|
|
|
export default HedgeDocApp
|