To test or debug your application files and decorated functions, you will need to provide the Chainlit context to your test suite.In your main application script or test files add:
Copy
if __name__ == "__main__": from chainlit.cli import run_chainlit run_chainlit(__file__)