diff --git a/app/gui2/e2e/main.ts b/app/gui2/e2e/main.ts index 888f1f3ca2d7..318df33c4d5e 100644 --- a/app/gui2/e2e/main.ts +++ b/app/gui2/e2e/main.ts @@ -1,5 +1,6 @@ import 'enso-dashboard/src/tailwind.css' import { createPinia } from 'pinia' +import { initializeFFI } from 'shared/ast/ffi' import { createApp, ref } from 'vue' import { mockDataHandler, mockLSHandler } from '../mock/engine' import '../src/assets/base.css' @@ -55,4 +56,4 @@ provideVisualizationConfig._mock( }, app, ) -app.mount('#app') +initializeFFI().then(() => app.mount('#app')) diff --git a/app/gui2/package.json b/app/gui2/package.json index 403d3c88c7ab..76c6fd5f3ab9 100644 --- a/app/gui2/package.json +++ b/app/gui2/package.json @@ -129,7 +129,6 @@ "unbzip2-stream": "^1.4.3", "vite": "^4.4.9", "vite-plugin-inspect": "^0.7.38", - "vite-plugin-top-level-await": "^1.3.1", "vitest": "^0.34.2", "vue-react-wrapper": "^0.3.1", "vue-tsc": "^1.8.8" diff --git a/app/gui2/src/components/ComponentBrowser/__tests__/input.test.ts b/app/gui2/src/components/ComponentBrowser/__tests__/input.test.ts index 8a418a9fee56..1303820711ad 100644 --- a/app/gui2/src/components/ComponentBrowser/__tests__/input.test.ts +++ b/app/gui2/src/components/ComponentBrowser/__tests__/input.test.ts @@ -17,9 +17,12 @@ import { import type { AstId } from '@/util/ast/abstract' import { unwrap } from '@/util/data/result' import { tryIdentifier, tryQualifiedName } from '@/util/qualifiedName' +import { initializeFFI } from 'shared/ast/ffi' import type { ExternalId, Uuid } from 'shared/yjsModel' import { expect, test } from 'vitest' +await initializeFFI() + test.each([ ['', 0, { type: 'insert', position: 0 }, {}], [ diff --git a/app/gui2/src/components/GraphEditor/GraphNode.vue b/app/gui2/src/components/GraphEditor/GraphNode.vue index 01107edfad86..88cc72c5c91f 100644 --- a/app/gui2/src/components/GraphEditor/GraphNode.vue +++ b/app/gui2/src/components/GraphEditor/GraphNode.vue @@ -1,4 +1,4 @@ - -