Dev (#47)
* 🚀 refactor: simplify deployment process in workflow file * 🚀 chore: add IMAGE_NAME to GITHUB_ENV for deployment workflow * ✨ chore: simplify deployment logging in workflow file * 🚀 fix: correct container name in deployment script logic * 🚀 refactor: rename job and streamline deployment steps * Update README.md * ✨ fix: prevent multiple form submissions in Contact component * ✨ feat: honeypot and timestamp checks to form submission * ✨ refactor: simplify contact form and improve UI elements * ✨ feat: add responsive masonry layout for projects display * ✨ style: Update project title size and improve layout visibility * ✨ fix: remove unnecessary test assertions and improve act usage * ✨ chore: add @types/react-responsive-masonry package fixing with this import error on building * ✨ chore: remove unused dev dependencies from package-lock.json * ✨ refactor: update environment variable usage and add caching * ✨ refactor: update environment variables and dependencies * ✨ chore: streamline Dockerfile and remove redundant steps
This commit is contained in:
@@ -18,8 +18,8 @@ afterAll(() => {
|
||||
|
||||
beforeEach(() => {
|
||||
nodemailermock.mock.reset();
|
||||
process.env.NEXT_PUBLIC_MY_EMAIL = 'test@dki.one';
|
||||
process.env.NEXT_PUBLIC_MY_PASSWORD = 'test-password';
|
||||
process.env.MY_EMAIL = 'test@dki.one';
|
||||
process.env.MY_PASSWORD = 'test-password';
|
||||
});
|
||||
|
||||
describe('POST /api/email', () => {
|
||||
@@ -43,8 +43,8 @@ describe('POST /api/email', () => {
|
||||
});
|
||||
|
||||
it('should return an error if EMAIL or PASSWORD is missing', async () => {
|
||||
delete process.env.NEXT_PUBLIC_MY_EMAIL;
|
||||
delete process.env.NEXT_PUBLIC_MY_PASSWORD;
|
||||
delete process.env.MY_EMAIL;
|
||||
delete process.env.MY_PASSWORD;
|
||||
|
||||
const mockRequest = {
|
||||
json: jest.fn().mockResolvedValue({
|
||||
|
||||
Reference in New Issue
Block a user