This pull request introduces changes across various test files to utilize environment variables for handling credentials. By moving credentials to a .env file, we enhance security and flexibility, allowing different environments to use different credentials without changing the codebase.
Summary
Added instructions for setting up a .env file at the root of the project, including how to add test credentials.
Modified test files (app.test.js, bookCategory.test.js, booksByAuthor.test.js, booksSearch.test.js, profile.test.js) to load environment variables using require('dotenv').config(); and replaced hardcoded credentials with process.env.TEST_EMAIL and process.env.TEST_PASSWORD.
This change ensures that credentials are not hardcoded into the test files, improving security and making it easier to change credentials without modifying the source code.
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 utilize environment variables for handling credentials. By moving credentials to a
.env
file, we enhance security and flexibility, allowing different environments to use different credentials without changing the codebase.Summary
.env
file at the root of the project, including how to add test credentials.app.test.js
,bookCategory.test.js
,booksByAuthor.test.js
,booksSearch.test.js
,profile.test.js
) to load environment variables usingrequire('dotenv').config();
and replaced hardcoded credentials withprocess.env.TEST_EMAIL
andprocess.env.TEST_PASSWORD
.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.