UNPKG

498 BJavaScriptView Raw
1/*
2This file tells the Mocha tests what build of Cytoscape to use.
3*/
4
5// For Travis or manual build tests, use the CJS build
6// NB : Must do `npm run build:cjs` before `npm test`
7if( process.env.TRAVIS || process.env.TEST_BUILD ){
8 module.exports = require('../build/cytoscape.cjs.js');
9
10// Otherwise use the unbundled, unbabelified, raw source
11// NB : Must use a version of Node that natively supports all JS features used in the lib
12} else {
13 module.exports = require('./index.js').default;
14}