cytoscape
Version:
Graph theory (a.k.a. network) library for analysis and visualisation
15 lines (12 loc) • 498 B
JavaScript
/*
This file tells the Mocha tests what build of Cytoscape to use.
*/
// For Travis or manual build tests, use the CJS build
// NB : Must do `npm run build:cjs` before `npm test`
if( process.env.TRAVIS || process.env.TEST_BUILD ){
module.exports = require('../build/cytoscape.cjs.js');
// Otherwise use the unbundled, unbabelified, raw source
// NB : Must use a version of Node that natively supports all JS features used in the lib
} else {
module.exports = require('./index.js').default;
}