Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate backend to ESM #959

Merged
merged 15 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
887 changes: 446 additions & 441 deletions Client/src/Pages/Monitors/Details/index.jsx

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions Server/.mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
require: ["esm", "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
};
8 changes: 0 additions & 8 deletions Server/.mocharc.js

This file was deleted.

2 changes: 1 addition & 1 deletion Server/configs/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const connectDbAndRunServer = async (app, db) => {
}
};

module.exports = { connectDbAndRunServer };
export { connectDbAndRunServer };
Loading