Skip to content

Commit

Permalink
Merge branch 'development' into Anirudh_loginmethod_unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandani07 authored Apr 27, 2024
2 parents c9e898b + 3eabd49 commit 35f9004
Show file tree
Hide file tree
Showing 98 changed files with 14,694 additions and 28,144 deletions.
Binary file modified .DS_Store
Binary file not shown.
33 changes: 19 additions & 14 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
{
"presets" : ["@babel/preset-env"],
"plugins":
["@babel/plugin-transform-async-to-generator",
["@babel/plugin-transform-runtime",
{
"corejs": false,
"helpers": true,
"regenerator": true,
"useESModules": false
}
],
["module-resolver", {
"presets": ["@babel/preset-env"],
"plugins": [
"@babel/plugin-transform-async-to-generator",
[
"@babel/plugin-transform-runtime",
{
"corejs": false,
"helpers": true,
"regenerator": true,
"useESModules": false
}
],
[
"module-resolver",
{
"root": "./src"
}]
}
]
}
],
"ignore": ["**/*.test.js", "**/*.spec.js", "src/test/**"]
}
17 changes: 9 additions & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
"sourceType": "module",
},
"env": { "es6": true, "node": true, "commonjs": true },
"rules": {
Expand All @@ -17,19 +17,20 @@
"template-curly-spacing": "off",
"indent": "off",
"linebreak-style": 0,
"no-console": "off"
"no-console": "off",
"consistent-return": "off",
},
"settings": {
"import/resolver": {
"babel-module": {}
}
"babel-module": {},
},
},
"overrides": [
{
"files": ["**/*.test.js", "**/*.spec.js", "src/test/*.js"],
"env": {
"jest": true
}
}
]
"jest": true,
},
},
],
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ testem.log

/.vscode

# OS specific
.DS_Store
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if ! head -1 "$1" | grep -qE "^(feat|fix|chore|docs|test|style|refactor|perf|bui
echo "Aborting commit. Your commit message is invalid." >&2
exit 1
fi
if ! head -1 "$1" | grep -qE "^.{1,120}$"; then
if ! head -1 "$1" | grep -qE "^.{1,140}$"; then
echo "Aborting commit. Your commit message is too long." >&2
exit 1
fi
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"*.js": ["eslint --fix", "npm run test:staged", "prettier --write --ignore-unknown"]
}
}
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"tabWidth": 2,
"semi": true,
"endOfLine": "auto"
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To clone the code, navigate to the source directory where you want to maintain t

Step2: Run npm install. Best way is to open the code in the editor and open integrated teminal. Run npm install.

Step3: If running on MacOS or Linux, run `npm run prepare`. This will install husky and allow integration with git hooks.
Step3: If running on MacOS or Linux, run `npm run prepare-macos-linux`. This will install husky and allow integration with git hooks. Windows users don't need and should not run this command.

Step4: Start the app: To start the app, you need to set up several process.env variables. These variables are:
user=<user>
Expand Down
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ module.exports = {
],
coverageDirectory: 'coverage',
testEnvironment: 'node',
transformIgnorePatterns: ['^.+\\.js$'],
transform: {
'^.+\\.js$': 'babel-jest',
},
};
Loading

0 comments on commit 35f9004

Please sign in to comment.