mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-22 03:05:19 -04:00
Add test mode (#898)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
e4210ae568
commit
dfc2524bd7
6 changed files with 26 additions and 9 deletions
|
@ -23,6 +23,7 @@ import { store } from './redux'
|
|||
import * as serviceWorkerRegistration from './service-worker-registration'
|
||||
import './style/dark.scss'
|
||||
import './style/index.scss'
|
||||
import { isTestMode } from './utils/is-test-mode'
|
||||
|
||||
const Editor = React.lazy(() => import(/* webpackPrefetch: true */ './components/editor/editor'))
|
||||
|
||||
|
@ -80,6 +81,10 @@ ReactDOM.render(
|
|||
, document.getElementById('root')
|
||||
)
|
||||
|
||||
if (isTestMode()) {
|
||||
console.log("This build runs in test mode")
|
||||
}
|
||||
|
||||
// If you want your app to work offline and load faster, you can change
|
||||
// unregister() to register() below. Note this comes with some pitfalls.
|
||||
// Learn more about service workers: https://bit.ly/CRA-PWA
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue