- Remove existing integration tests for hooks as they're redundant after this change. - Document the pattern in relevant documentation. - Introduce `useEnvironment` to increase testability. - Update components to inject dependencies rather than importing hooks directly.
17 lines
592 B
TypeScript
17 lines
592 B
TypeScript
import Vue from 'vue';
|
|
import { buildContext } from '@/application/Context/ApplicationContextFactory';
|
|
import App from './components/App.vue';
|
|
import { ApplicationBootstrapper } from './bootstrapping/ApplicationBootstrapper';
|
|
|
|
buildContext().then(() => {
|
|
// hack workaround to solve running tests through
|
|
// Vue CLI throws 'Top-level-await is only supported in EcmaScript Modules'
|
|
// once migrated to vite, remove buildContext() call from here and use top-level-await
|
|
new ApplicationBootstrapper()
|
|
.bootstrap(Vue);
|
|
|
|
new Vue({
|
|
render: (h) => h(App),
|
|
}).$mount('#app');
|
|
});
|