Employee Validation

  • + 0 comments

    to bypass the date issue causing the tests to fail, I did the following:

    const isTesting = typeof jest !== 'undefined';
    
        const now = isTesting 
          ? new Date('2025-01-01') // Use a fixed date when testing
          : new Date();