Add mocha, chai, and sinon for testing

This commit is contained in:
Alex Holliday committed 2024-10-10 11:42:04 +08:00
1 parent 8578304ca4
commit 485e520dcb
3 files changed
+694 -3

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
module.exports = {
require: ["chai/register-expect.js"], // Include Chai's "expect" interface globally
spec: "tests/**/*.test.js", // Specify test files
timeout: 5000, // Set test-case timeout in milliseconds
recursive: true, // Include subdirectories
reporter: "spec", // Use the "spec" reporter
exit: true, // Force Mocha to quit after tests complete
};