mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Enterprise Search] Fix failing snapshop tests (#149864)
## Summary This fixes a few snapshot tests that were failing locally due to timezone differences. Running tests locally now uses the same UTC timezone that's used in CI.
This commit is contained in:
parent
7006c7a02d
commit
4baa14ab02
3 changed files with 11110 additions and 4 deletions
|
@ -25,4 +25,4 @@ fi
|
|||
# @see https://jestjs.io/docs/en/cli#options
|
||||
ARGS="${*:2}"
|
||||
|
||||
yarn test:jest $TARGET $ARGS
|
||||
TZ="Etc/UTC" yarn test:jest $TARGET $ARGS
|
||||
|
|
11108
x-pack/plugins/enterprise_search/public/applications/shared/cron_editor/__snapshots__/cron_editor.test.tsx.snap
generated
Normal file
11108
x-pack/plugins/enterprise_search/public/applications/shared/cron_editor/__snapshots__/cron_editor.test.tsx.snap
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -17,9 +17,7 @@ import { CronEditor } from './cron_editor';
|
|||
|
||||
describe('CronEditor', () => {
|
||||
['MINUTE', 'HOUR', 'DAY', 'WEEK', 'MONTH', 'YEAR'].forEach((unit) => {
|
||||
// Skipped during Jest 29 upgrade
|
||||
// No snapshot has been committed
|
||||
test.skip(`is rendered with a ${unit} frequency`, () => {
|
||||
it(`is rendered with a ${unit} frequency`, () => {
|
||||
const component = mountWithI18nProvider(
|
||||
<CronEditor
|
||||
fieldToPreferredValueMap={{}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue