Closed PeterDaveHello closed 5 days ago
We don't do any testing currently, I don't think mocha is actually imported anywhere, just a relic of older boilerplate code.
I'm not at all against having test scripts, just haven't had the time. I'm gonna update this PR to remove the package instead, since it's not used, and I like to somewhat manage the dependency bloat.
We can bring Mocha back in if we start writing tests.
This PR was automatically created by Snyk using the credentials of a real user.
![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123) ### Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project. #### Snyk changed the following file(s): - `package.json` #### Note for [zero-installs](https://yarnpkg.com/features/zero-installs) users If you are using the Yarn feature [zero-installs](https://yarnpkg.com/features/zero-installs) that was introduced in Yarn V2, note that this PR does not update the `.yarn/cache/` directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run `yarn` to update the contents of the `./yarn/cache` directory. If you are not using zero-install you can ignore this as your flow should likely be unchanged.
⚠️ Warning
``` Failed to update the yarn.lock, please update manually before merging. ```[SNYK-JS-SERIALIZEJAVASCRIPT-6147607](https://snyk.io/vuln/SNYK-JS-SERIALIZEJAVASCRIPT-6147607) | **626** --- > [!IMPORTANT] > > - Check the changes in this PR to ensure they won't cause issues with your project. > - Max score is 1000. Note that the real score may have changed since the PR was raised. > - This PR was automatically created by Snyk using the credentials of a real user. --- **Note:** _You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs._ For more information: 🧐 [View latest project report](https://app.snyk.io/org/peterdavehello/project/f0c09e73-b1e2-4aaf-b110-627c8103c23e?utm_source=github&utm_medium=referral&page=fix-pr) 📜 [Customise PR templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates) 🛠 [Adjust project settings](https://app.snyk.io/org/peterdavehello/project/f0c09e73-b1e2-4aaf-b110-627c8103c23e?utm_source=github&utm_medium=referral&page=fix-pr/settings) 📚 [Read about Snyk's upgrade logic](https://support.snyk.io/hc/en-us/articles/360003891078-Snyk-patches-to-fix-vulnerabilities) --- **Learn how to fix vulnerabilities with free interactive lessons:** 🦉 [Cross-site Scripting (XSS)](https://learn.snyk.io/lesson/dom-based-xss/?loc=fix-pr) [//]: # 'snyk:metadata:{"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"mocha","from":"10.2.0","to":"10.6.0"}],"env":"prod","issuesToFix":[{"exploit_maturity":"Proof of Concept","id":"SNYK-JS-SERIALIZEJAVASCRIPT-6147607","priority_score":626,"priority_score_factors":[{"type":"exploit","label":"Proof of Concept","score":107},{"type":"fixability","label":true,"score":214},{"type":"cvssScore","label":"6.1","score":305},{"type":"scoreVersion","label":"v1","score":1}],"severity":"medium","title":"Cross-site Scripting (XSS)"}],"prId":"c4e84c6e-8c9a-416f-a116-78c04e80c4ad","prPublicId":"c4e84c6e-8c9a-416f-a116-78c04e80c4ad","packageManager":"yarn","priorityScoreList":[626],"projectPublicId":"f0c09e73-b1e2-4aaf-b110-627c8103c23e","projectUrl":"https://app.snyk.io/org/peterdavehello/project/f0c09e73-b1e2-4aaf-b110-627c8103c23e?utm_source=github&utm_medium=referral&page=fix-pr","prType":"fix","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":["updated-fix-title","pr-warning-shown","priorityScore"],"type":"auto","upgrade":["SNYK-JS-SERIALIZEJAVASCRIPT-6147607"],"vulns":["SNYK-JS-SERIALIZEJAVASCRIPT-6147607"],"patch":[],"isBreakingChange":false,"remediationStrategy":"vuln"}'