diff --git a/conda/meta.yaml b/conda/meta.yaml
index fe7462189c8495175fb6d63b3848e1d11f1ac82b..127c99b0246b2fe6f5c798069df3890fc4da66cd 100644
--- a/conda/meta.yaml
+++ b/conda/meta.yaml
@@ -36,6 +36,9 @@ requirements:
     - beat.cmdline
 
 test:
+  script_env:
+    - BEAT_BROWSER_TESTS
+
   files:
     - js
 
@@ -56,7 +59,7 @@ test:
     - beat editor --help
     - beat editor serve --help
     - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
-    {% if environ.get('BEAT_BROWSER_TESTS', False)  %}
+    {% if environ.get('BEAT_BROWSER_TESTS')  %}
     - cd {{ project_dir }}/conda/js
     - npm install
     - npm test