UNPKG

als-statistics

Version:

Modular JS statistics toolkit for Node.js and the browser: descriptive stats, correlations (Pearson/Spearman/Kendall), t-tests & ANOVA (Student/Welch), reliability (Cronbach’s alpha), regression (linear/logistic), clustering (DBSCAN/HDBSCAN), and table/co

13 lines (10 loc) 456 B
import { readdirSync,writeFileSync } from 'fs' const items = readdirSync('./tests',{recursive:true}) const excludes = ['browser-test','golden'] const files = items.filter(item => { if(excludes.some(v => item.includes(v))) return false if(item.endsWith('.test.js')) return true return false }) .map(filepath => `import '/tests/${filepath.replace(/\\/g,'/')}';`).join('\n') writeFileSync('./tests/browser-test/files.js',files,'utf-8')