fix(jest): using UTC mock date (#11079)

This commit is contained in:
Yongjie Zhao 2020-09-27 05:53:41 +08:00 committed by GitHub
parent 23d62f37a6
commit 1493450a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ import ControlHeader from 'src/explore/components/ControlHeader';
// Mock moment.js to use a specific date
jest.mock('moment', () => {
const testDate = new Date('09/07/2020');
const testDate = new Date('2020-09-07');
return () => jest.requireActual('moment')(testDate);
});

View File

@ -37,7 +37,7 @@ setenv =
# docker run -p 8080:8080 --name presto prestosql/presto
mysql-presto: SUPERSET__SQLALCHEMY_EXAMPLES_URI = presto://localhost:8080/memory/default
# based on https://github.com/big-data-europe/docker-hadoop
# close the repo & run docker-compose up -d to test locally
# clone the repo & run docker-compose up -d to test locally
mysql-hive: SUPERSET__SQLALCHEMY_DATABASE_URI = mysql://mysqluser:mysqluserpassword@localhost/superset?charset=utf8
mysql-hive: SUPERSET__SQLALCHEMY_EXAMPLES_URI = hive://localhost:10000/default
# make sure that directory is accessible by docker