wavefile
wavefile copied to clipboard
feat: migrate test suite to Node.js native tests and ESM
- Replace Mocha with Node.js native test runner
- Convert all test files from CommonJS to ES Modules
- Add some CLI tests
- Use esbuild instead rollup (has two different output files specific for cjs and esm)
- Deleted AMD test because we don't compile to AMD/UMD anymore (the esm will work on browsers)
This commit modernizes our testing infrastructure by leveraging Node.js built-in test runner and embracing ES Modules across our test suite. It also introduces new tests for the CLI functionality.