This was our previous advice: Testing (CI/CD) of netlify edge functions - #5 by hrishikesh
As for Blobs, you can try setting this environment variable: blobs/src/main.test.ts at 1da860dcc54cd33dddddcd8a78ea2f68a1cf523e · netlify/blobs (github.com)
But if that doesn’t work, CLI would be your only option. It does a similar thing by the way: cli/src/lib/functions/netlify-function.ts at 6f79b80f8c23bd68a14749fd71aa64064de9165b · netlify/cli (github.com)