Skip to content

Commit 12f631d

Browse files
committed
try
1 parent 1659eca commit 12f631d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@
3535
"test:coverage": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc mocha 'packages/**/*.test.{js,ts,tsx}' --exclude '**/node_modules/**' && nyc report -r lcovonly",
3636
"test:coverage:html": "cross-env NODE_ENV=test BABEL_ENV=coverage nyc mocha 'packages/**/*.test.{js,ts,tsx}' --exclude '**/node_modules/**' && nyc report --reporter=html",
3737
"test:karma": "cross-env NODE_ENV=test karma start test/karma.conf.js",
38-
"test:unit": "cross-env NODE_ENV=test TZ='CET' mocha 'packages/**/*.test.{js,ts,tsx}' -n expose_gc",
38+
"test:unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.{js,ts,tsx}' -n expose_gc",
3939
"test:e2e": "cross-env NODE_ENV=production yarn test:e2e:build && concurrently --success first --kill-others \"yarn test:e2e:run\" \"yarn test:e2e:server\"",
4040
"test:e2e:build": "webpack --config test/e2e/webpack.config.js",
4141
"test:e2e:dev": "concurrently \"yarn test:e2e:build --watch\" \"yarn test:e2e:server\"",
42-
"test:e2e:run": " TZ='CET' mocha --config test/e2e/.mocharc.js 'test/e2e/**/*.test.{js,ts,tsx}'",
42+
"test:e2e:run": "mocha --config test/e2e/.mocharc.js 'test/e2e/**/*.test.{js,ts,tsx}'",
4343
"test:e2e:server": "serve test/e2e -p 5001",
4444
"test:e2e-website": "playwright test test/e2e-website --config test/e2e-website/playwright.config.ts",
4545
"test:e2e-website:dev": "PLAYWRIGHT_TEST_BASE_URL=http://localhost:3001 playwright test test/e2e-website --config test/e2e-website/playwright.config.ts",
4646
"test:regressions": "cross-env NODE_ENV=production yarn test:regressions:build && concurrently --success first --kill-others \"yarn test:regressions:run\" \"yarn test:regressions:server\"",
4747
"test:regressions:build": "webpack --config test/regressions/webpack.config.js",
4848
"test:regressions:dev": "concurrently \"yarn test:regressions:build --watch\" \"yarn test:regressions:server\"",
49-
"test:regressions:run": " TZ='CET' mocha --config test/regressions/.mocharc.js --delay 'test/regressions/**/*.test.js'",
49+
"test:regressions:run": "mocha --config test/regressions/.mocharc.js --delay 'test/regressions/**/*.test.js'",
5050
"test:regressions:server": "serve test/regressions -p 5001",
5151
"test:performance": "cross-env NODE_ENV=production yarn test:performance:build && concurrently --success first --kill-others \"yarn test:performance:run\" \"yarn test:performance:server\"",
5252
"test:performance:dev": "concurrently \"yarn test:performance:build --watch\" \"yarn test:performance:server\"",

packages/x-date-pickers/src/DateTimeField/tests/timezone.DateTimeField.test.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import * as React from 'react';
2+
import { Settings } from 'luxon';
23
import { DateTimeField } from '@mui/x-date-pickers/DateTimeField';
34
import { screen } from '@mui/monorepo/test/utils';
45
import { createPickerRenderer, expectInputValue } from 'test/utils/pickers-utils';
56

6-
describe('<DateTimeField /> - TimeZone', () => {
7+
describe.only('<DateTimeField /> - TimeZone', () => {
78
describe('Value time-zone modification - Luxon', () => {
89
const { render, adapter } = createPickerRenderer({ clock: 'fake', adapterName: 'luxon' });
910
it('should update the field when time zone changes (timestamp remains the same)', () => {
1011
const { setProps } = render(<DateTimeField />);
1112
const input = screen.getByRole('textbox');
1213

13-
const date = adapter.date(new Date(2020, 5, 18, 16, 30, 10)).setZone('UTC');
14+
const date = adapter.date(new Date('2020-06-18T14:30:10.000Z')).setZone('UTC');
1415
setProps({ value: date });
1516

1617
expectInputValue(input, '6 / 18 / 2020 02:30 PM');

0 commit comments

Comments
 (0)