niivue / niivue-vscode

NiiVue extension for vscode + standalone web app
https://niivue.github.io/niivue-vscode/
MIT License
24 stars 7 forks source link

Optimize tests for surfaces #42

Open felenitaribeiro opened 11 months ago

felenitaribeiro commented 11 months ago

When building tests to check whether surfaces were appropriately loaded, we noticed that it takes a little while to detect them. Currently, we have to load two surfaces to change the state of whether a surface was loaded and then be able to test for the loading by checking the output about the number of points/nodes as in:

${isMesh.value? getNumberOfPoints(nvArraySelected.value[0]): 'No mesh'}

in the niivue/src/components/Menu.ts file.

The same problem happens with the surface overlay.