diff --git a/conda/meta.yaml b/conda/meta.yaml
index 13cde72905b0d98f0f76a0c14043c1ab4d33f484..8fc171e2980552ce74d0f5d3fd98910976f8c757 100644
--- a/conda/meta.yaml
+++ b/conda/meta.yaml
@@ -46,6 +46,9 @@ test:
   imports:
     - {{ name }}
 
+  script_env:
+    - QT_QPA_PLATFORM=offscreen
+
   commands:
     - beat editor --help
     - beat editor start --help