Skip to content

Update dependencies, gitignore, and add helper functions

Insidious Fiddler requested to merge github/fork/Codycody31/main into main

This pull request includes the following updates:

  1. Updated dependencies in the package-lock.json file:

    • Updated engine.io from version 6.4.1 to 6.4.2
    • Updated socket.io-parser from version 4.2.2 to 4.2.4
    • Updated semver from version 7.5.1 to 7.5.4
  2. Added the jest-test-area/ directory to the .gitignore file to exclude test files from version control.

  3. Added tests for helper functions in helpers.test.js to ensure their correctness.

  4. Added helper functions for file manipulation in the helpers.js file.

  5. Added helmet middleware to the app.js file to hide the X-Powered-By header for improved security. The helmet package was also added as a dependency.

  6. Added a beforeAll hook in helpers.test.js to create a folder if it doesn't exist before running the tests. Fixed a typo in a comment.

  7. Added a test for the slug helper function in helpers.test.js. Modified app.js to import the slug and vLog helper functions from the helpers module. Also added the slug and vLog helper functions to the helpers.js file.

Merge request reports