def TestNodeVersionApp():
    """A test app for node latest version."""
    import reflex as rx
    from reflex.utils.prerequisites import get_node_version

    class TestNodeVersionConfig(rx.Config):
        pass

    class TestNodeVersionState(rx.State):
        @rx.var
        def node_version(self) -> str:
            return str(get_node_version())

    app = rx.App()

    @app.add_page
    def index():
        return rx.heading("Node Version check v", TestNodeVersionState.node_version)
A test app for node latest version.
tests/test_node_version.py