Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ローカルでユニットテストを実行するとタイムゾーンのずれで失敗する #4416

Open
ras0q opened this issue Nov 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ras0q
Copy link
Member

ras0q commented Nov 1, 2024

image


⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

 FAIL  tests/unit/lib/basic/date.spec.ts > getISOFullDayString > can get iso full day (2)
AssertionError: expected '2001-04-03' to be '2001-04-04' // Object.is equality

Expected: "2001-04-04"
Received: "2001-04-03"

 ❯ tests/unit/lib/basic/date.spec.ts:57:47
     55|   })
     56|   it('can get iso full day (2)', () => {
     57|     expect(getISOFullDayString(defaultDate2)).toBe('2001-04-04')
       |                                               ^
     58|   })
     59| })

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯

 FAIL  tests/unit/lib/searchMessage/queryParser.spec.ts > parseQuery > can parse query with date-filter
AssertionError: expected '2021-01-22T15:00:00.000Z' to be '2021-01-23T00:00:00.000Z' // Object.is equality

Expected: "2021-01-23T00:00:00.000Z"
Received: "2021-01-22T15:00:00.000Z"

 ❯ tests/unit/lib/searchMessage/queryParser.spec.ts:54:31
     52|     expect(normalizedQuery).toBe(query)
     53|     expect(queryObject.word).toBe('lorem ipsum')
     54|     expect(queryObject.after).toBe('2021-01-23T00:00:00.000Z')
       |                               ^
     55|   })
     56|   it('can parse query with in-filter (prefix: `in:`)', async () => {
@ras0q ras0q added the bug Something isn't working label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant