phovea/phovea_d3

Tests fail when run locally

Closed this issue · 2 comments

  • Release number or git hash: bf6c669

Steps to reproduce

  1. Follow the instructions in the README

Observed behavior

phovea_d3$ npm test

> phovea_d3@0.0.1-SNAPSHOT pretest /Users/chuck/github/phovea/phovea_d3
> npm run compile


> phovea_d3@0.0.1-SNAPSHOT compile /Users/chuck/github/phovea/phovea_d3
> tsc

../phovea_core/src/data.ts(164,10): error TS2322: Type 'Promise<IDataType[]>' is not assignable to type 'Promise<IDataType>'.
  Type 'IDataType[]' is not assignable to type 'IDataType'.
    Property 'desc' is missing in type 'IDataType[]'.
src/layout_d3util.ts(61,19): error TS2365: Operator '===' cannot be applied to types 'false' and 'true'.
src/link_representation.ts(62,26): error TS2339: Property 'groupa' does not exist on type 'Range'.
src/link_representation.ts(63,26): error TS2339: Property 'groupb' does not exist on type 'Range'.
src/link_representation.ts(132,11): error TS2339: Property 'forEach' does not exist on type 'Range'.

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/7.2.1/bin/node" "/usr/local/bin/npm" "run" "compile"
npm ERR! node v7.2.1
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! phovea_d3@0.0.1-SNAPSHOT compile: `tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the phovea_d3@0.0.1-SNAPSHOT compile script 'tsc'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the phovea_d3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs phovea_d3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls phovea_d3
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/chuck/github/phovea/phovea_d3/npm-debug.log
npm ERR! Test failed.  See above for more details.

Expected behavior

  • Tests pass when run locally
  • Tests are run by Travis

Last test run on Travis seemed to work: https://travis-ci.org/phovea/phovea_d3

After updating, tests pass locally, and on travis. Closing