1- import { beforeEach , describe , it , afterEach } from "@std/testing/bdd" ;
1+ import { afterEach , beforeEach , describe , it } from "@std/testing/bdd" ;
22import { h , render , VNode } from "../src/index.ts" ;
3- import { createBuilder , UI } from "@commontools/builder" ;
3+ import { createBuilder } from "@commontools/builder" ;
44import { Runtime } from "@commontools/runner" ;
55import * as assert from "./assert.ts" ;
66import { JSDOM } from "jsdom" ;
@@ -12,6 +12,7 @@ describe("recipes with HTML", () => {
1212 let lift : ReturnType < typeof createBuilder > [ "lift" ] ;
1313 let recipe : ReturnType < typeof createBuilder > [ "recipe" ] ;
1414 let str : ReturnType < typeof createBuilder > [ "str" ] ;
15+ let UI : ReturnType < typeof createBuilder > [ "UI" ] ;
1516
1617 beforeEach ( ( ) => {
1718 // Set up a fresh JSDOM instance for each test
@@ -26,11 +27,11 @@ describe("recipes with HTML", () => {
2627
2728 // Set up runtime
2829 runtime = new Runtime ( {
29- storageUrl : "volatile://"
30+ storageUrl : "volatile://" ,
3031 } ) ;
31-
32+
3233 const builder = createBuilder ( runtime ) ;
33- ( { lift, recipe, str } = builder ) ;
34+ ( { lift, recipe, str, UI } = builder ) ;
3435 } ) ;
3536
3637 afterEach ( async ( ) => {
@@ -48,7 +49,7 @@ describe("recipes with HTML", () => {
4849 const result = runtime . run (
4950 simpleRecipe ,
5051 { value : 5 } ,
51- runtime . documentMap . getDoc ( undefined , "simple-ui-result" , "test" )
52+ runtime . documentMap . getDoc ( undefined , "simple-ui-result" , "test" ) ,
5253 ) ;
5354
5455 await runtime . idle ( ) ;
@@ -98,7 +99,7 @@ describe("recipes with HTML", () => {
9899 { title : "item 2" , done : true } ,
99100 ] ,
100101 } ,
101- runtime . documentMap . getDoc ( undefined , "todo-list-result" , "test" )
102+ runtime . documentMap . getDoc ( undefined , "todo-list-result" , "test" ) ,
102103 ) ;
103104
104105 await runtime . idle ( ) ;
@@ -140,7 +141,7 @@ describe("recipes with HTML", () => {
140141 { title : "item 2" , done : true } ,
141142 ] ,
142143 } ,
143- runtime . documentMap . getDoc ( undefined , "nested-todo-result" , "test" )
144+ runtime . documentMap . getDoc ( undefined , "nested-todo-result" , "test" ) ,
144145 ) ;
145146
146147 await runtime . idle ( ) ;
@@ -161,7 +162,7 @@ describe("recipes with HTML", () => {
161162 const result = runtime . run (
162163 strRecipe ,
163164 { name : "world" } ,
164- runtime . documentMap . getDoc ( undefined , "str-recipe-result" , "test" )
165+ runtime . documentMap . getDoc ( undefined , "str-recipe-result" , "test" ) ,
165166 ) ;
166167
167168 await runtime . idle ( ) ;
@@ -202,7 +203,7 @@ describe("recipes with HTML", () => {
202203 const result = runtime . run (
203204 nestedMapRecipe ,
204205 data ,
205- runtime . documentMap . getDoc ( undefined , "nested-map-result" , "test" )
206+ runtime . documentMap . getDoc ( undefined , "nested-map-result" , "test" ) ,
206207 ) ;
207208
208209 await runtime . idle ( ) ;
0 commit comments