CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
test.mjs18 linesDownload Raw Back to src
1/*2This file tells the Mocha tests what build of Cytoscape to use.3*/4 5// For manual build tests, use the ESM build6// NB : Must do `npm run build` before `npm test`7let cytoscape;8 9if (process.env.TEST_BUILD) {10  // Dynamically import the ESM build11  cytoscape = await import('../build/cytoscape.esm.mjs'); // Assuming the ESM build uses `.esm.js`12} else {13  // Dynamically import the unbundled, unbabelified raw source14  cytoscape = await import('./index.mjs');15}16 17// Export the module (adjust based on whether you need default or named exports)18export default cytoscape.default || cytoscape;
basant307/AI_Governance_Project · CoolFace