File size: 498 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
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;
}