joeyfigaro
9/6/2016 - 4:56 PM

AVA testing issue regarding dependency in node_modules

AVA testing issue regarding dependency in node_modules

Error after running tests:

/<ProjectRepository>/node_modules/react-ga/src/index.js:51
          m = s.getElementsByTagName(o)[0];
                ^
TypeError: s.getElementsByTagName is not a function

Configuration from package.json:

"ava": {
  "files": [
    "./test"
  ],
  "source": [
        "src/app/**/*.js",
        "!src/app/utils/**/*.js"
  ],
  "concurrency": 5,
  "failFast": true,
  "tap": true,
  "powerAssert": false,
  "require": [
    "babel-register",
        "./test/setup.js"
  ],
  "babel": "inherit"
}