0

I have an issue running my unit tests in my CI environment (teamcity). My agent throws this issue when I try to run my unit test:

ERROR [phantomjs.launcher]: /opt/home/teamcity/buildAgent2/work/a6ed2b843575d927/node_modules/karma-phantomjs2-launcher/node_modules/phantomjs2-ext/lib/phantom/bin/phantomjs: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

I don't have PhantomJS installed globally. It is part of my devDependencies and is installed in a previous build step. I'm using Karma as unit test runner and specified the phantomJS runner like this:

browsers: ['PhantomJS2']

Cœur
  • 34,719
  • 24
  • 185
  • 251
andreaspfr
  • 2,246
  • 5
  • 39
  • 50

0 Answers0