fix reload schema before testing

This commit is contained in:
Ruben Fiszel
2022-10-12 23:24:20 +02:00
parent 7e35d9989a
commit 5425a4a7bd
2 changed files with 4 additions and 2 deletions
@@ -134,7 +134,8 @@
bind:code
bind:websocketAlive
bind:this={editor}
cmdEnterAction={() => {
cmdEnterAction={async () => {
await inferSchema()
runTest()
}}
formatAction={async () => {
@@ -171,8 +171,9 @@
deno={flowModule.value.language === RawScript.language.DENO}
lang={scriptLangToEditorLang(flowModule.value.language)}
automaticLayout={true}
cmdEnterAction={() => {
cmdEnterAction={async () => {
selected = 'test'
await reload(flowModule)
modulePreview?.runTestWithStepArgs()
}}
formatAction={() => reload(flowModule)}