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

Workflow #389

Open
wants to merge 34 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d340db1
installing prettier
EF-Pami Jan 17, 2024
58f672a
adding formatting script
EF-Pami Jan 17, 2024
1cc6104
1.0.1
EF-Pami Jan 17, 2024
2fd2e70
changing type to module
EF-Pami Jan 17, 2024
2a6330d
installing eslint
EF-Pami Jan 17, 2024
d1e870b
installing eslint
EF-Pami Jan 17, 2024
bcc18b8
configuring eslint
EF-Pami Jan 17, 2024
10fc626
adding lint to script
EF-Pami Jan 17, 2024
1ddda9a
adding lint-fix to script
EF-Pami Jan 17, 2024
d109aee
adding gitHub link to package.json
EF-Pami Jan 18, 2024
bfa910a
just testing format in prettier
EF-Pami Jan 18, 2024
b530979
installing husky
EF-Pami Jan 22, 2024
bc80767
installing jest
EF-Pami Jan 22, 2024
4591bf8
adding test and test-unit to script
EF-Pami Jan 22, 2024
f5aeb40
adding overrides to eslintrc
EF-Pami Jan 22, 2024
d4d3f44
adding app.test.js file
EF-Pami Jan 22, 2024
58d6f0a
adding eslintcache
EF-Pami Jan 22, 2024
d9df945
installing and configuring babel
EF-Pami Jan 22, 2024
e7850e5
trying the test function on apple.js
EF-Pami Jan 22, 2024
b68ebbe
update on eslintcache
EF-Pami Jan 22, 2024
7c496f2
installing and configuring cypress
EF-Pami Jan 22, 2024
2cc2539
adding overrides for cypress into eslintrc.json
EF-Pami Jan 22, 2024
b310281
cypress configuration js file
EF-Pami Jan 24, 2024
9f33e9d
adding to gitignore
EF-Pami Jan 24, 2024
cd6e2af
update on cypress support files
EF-Pami Jan 24, 2024
45ca825
update on eslintcache
EF-Pami Jan 24, 2024
3893fcd
added localstorage.mock.js
EF-Pami Jan 26, 2024
21cb4b0
update husky
EF-Pami Jan 26, 2024
a87fe0a
added ReadME File
EF-Pami Jan 26, 2024
ee4d74c
Update apple.js
EF-Pami Jan 26, 2024
35b2a5c
Update .eslintcache
EF-Pami Jan 26, 2024
a288c8e
added logout.cy.js
EF-Pami Jan 27, 2024
40e8951
update .eslintcache
EF-Pami Jan 27, 2024
5ec440c
update package.json for automated testing
EF-Pami Jan 27, 2024
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
1 change: 1 addition & 0 deletions .eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"C:\\Users\\pamij\\OneDrive\\Documents\\GitHub\\social-media-client\\src\\js\\app.test.js":"1"},{"size":92,"mtime":1705949183269,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1owb8p1","C:\\Users\\pamij\\OneDrive\\Documents\\GitHub\\social-media-client\\src\\js\\app.test.js",[],[]]
22 changes: 22 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"overrides": [
{
"files": ["**/*.test.js"],
"env": { "jest": true },
"plugins": ["jest"],
"extends": ["plugin:jest/recommended"],
"rules": { "jest/prefer-expect-assertions": "off" }
}
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
}
}
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
12 changes: 12 additions & 0 deletions 6
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

added 54 packages, and audited 368 packages in 4s

60 packages are looking for funding
run `npm fund` for details

3 high severity vulnerabilities

To address all issues (including breaking changes), run:
npm audit fix --force

Run `npm audit` for details.
Comment on lines +1 to +12

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

The changes made in this hunk are related to the package management and audit. It seems like there are 3 high severity vulnerabilities found during the audit. While npm audit fix --force can be used to automatically install any updates that break the current code, it's not always the best solution as it might introduce breaking changes into your application.

Instead of using npm audit fix --force, I would recommend manually reviewing and addressing each vulnerability. This way, you can ensure that the fixes don't unintentionally break other parts of your application. You can use npm audit for more details about each vulnerability.

- To address all issues (including breaking changes), run:
-   npm audit fix --force
+ To address all issues individually, review the output of:
+   npm audit

This change will encourage developers to take a more careful approach when dealing with security vulnerabilities.

Loading
Loading