@@ -7,26 +7,30 @@ import Status from "~/utils/status"
77import * as composables from "~/composables/viewer_call"
88import { useDataStyleStore } from "~/stores/data_style"
99import { useViewerStore } from "~/stores/viewer"
10- import { kill_back , kill_viewer } from "~/utils/local"
10+ import { delete_folder_recursive , kill_back , kill_viewer } from "~/utils/local"
1111import { setupIntegrationTests } from "../../../setup.js"
1212
1313// Local constants
1414const mesh_schemas = viewer_schemas . opengeodeweb_viewer . mesh
1515const file_name = "test.og_rgd3d"
1616const geode_object = "RegularGrid3D"
1717
18- let id , back_port , viewer_port
18+ let id , back_port , viewer_port , project_folder_path
1919
2020beforeEach ( async ( ) => {
21- ; ( { id, back_port, viewer_port } = await setupIntegrationTests (
22- file_name ,
23- geode_object ,
24- ) )
21+ ; ( { id, back_port, viewer_port, project_folder_path } =
22+ await setupIntegrationTests ( file_name , geode_object ) )
2523} , 20000 )
2624
2725afterEach ( async ( ) => {
28- console . log ( "afterEach mesh index kill" , back_port , viewer_port )
26+ console . log (
27+ "afterEach mesh index kill" ,
28+ back_port ,
29+ viewer_port ,
30+ project_folder_path ,
31+ )
2932 await Promise . all ( [ kill_back ( back_port ) , kill_viewer ( viewer_port ) ] )
33+ delete_folder_recursive ( project_folder_path )
3034} )
3135
3236describe ( "Mesh" , ( ) => {
@@ -35,8 +39,8 @@ describe("Mesh", () => {
3539 const dataStyleStore = useDataStyleStore ( )
3640 const viewerStore = useViewerStore ( )
3741 const visibility = true
38- await dataStyleStore . setMeshVisibility ( id , visibility )
3942 const spy = vi . spyOn ( composables , "viewer_call" )
43+ await dataStyleStore . setMeshVisibility ( id , visibility )
4044 expect ( spy ) . toHaveBeenCalledWith (
4145 {
4246 schema : mesh_schemas . visibility ,
0 commit comments