This pull request introduces changes across various test files to enhance security and maintainability by utilizing environment variables for sensitive credentials. By moving credentials to a .env file, we reduce the risk of accidentally committing sensitive information into version control and make it easier to update credentials without modifying the test files directly.
Summary
Added require("dotenv").config(); to the top of all test files to load environment variables.
Replaced hardcoded credentials in test files with process.env.TEST_EMAIL and process.env.TEST_PASSWORD to utilize values stored in environment variables.
Affected test files include:
test/app.test.js
test/bookCategory.test.js
test/booksByAuthor.test.js
test/booksSearch.test.js
test/profile.test.js
test/user.test.js
This change ensures that our tests remain functional and secure without hardcoding sensitive information directly into our test suite.
Fixes #115.
π Latest improvements to Sweep:
New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
PR Feedback (click)
Description
This pull request introduces changes across various test files to enhance security and maintainability by utilizing environment variables for sensitive credentials. By moving credentials to a
.env
file, we reduce the risk of accidentally committing sensitive information into version control and make it easier to update credentials without modifying the test files directly.Summary
require("dotenv").config();
to the top of all test files to load environment variables.process.env.TEST_EMAIL
andprocess.env.TEST_PASSWORD
to utilize values stored in environment variables.test/app.test.js
test/bookCategory.test.js
test/booksByAuthor.test.js
test/booksSearch.test.js
test/profile.test.js
test/user.test.js
Fixes #115.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.