1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-08 23:15:24 +02:00

Merge pull request #127 from shyrynaz/fix-datepicker-tests

fix date-picker tests
This commit is contained in:
Josh Pigford 2024-01-18 07:54:08 -06:00 committed by GitHub
commit dc11e5254c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,9 +3,6 @@ import { fireEvent, render, screen, waitFor } from '@testing-library/react'
import { DatePicker } from './'
import { DateTime } from 'luxon'
// Set date to Oct 29, 2021 to keep snapshots consistent
beforeAll(() => jest.useFakeTimers().setSystemTime(new Date('2021-10-29 12:00:00')))
// DatePicker configuration
const minDate = DateTime.now().minus({ years: 2 })
const maxDate = DateTime.now()