File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2424 "scripts" : {
2525 "storybook" : " start-storybook -s ./node_modules/@salesforce-ux/design-system -p 9001 -c .storybook" ,
2626 "test" : " echo \" no test to run\" " ,
27- "pretest:visual" : " storycap --serverCmd \" npm run storybook -- --ci\" http://localhost:9001 -o images --serverTimeout 3600000 --captureTimeout 10000 --delay 2000" ,
27+ "pretest:visual" : " storycap --serverCmd \" NODE_ENV=test npm run storybook -- --ci\" http://localhost:9001 -o images --serverTimeout 3600000 --captureTimeout 10000 --delay 2000" ,
2828 "test:visual" : " reg-suit -v run" ,
2929 "type-check" : " tsc --noEmit" ,
3030 "type-check:watch" : " npm run type-check -- --watch" ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ type Calendar = {
5050function createCalendarObject ( date ?: string , mnDate ?: string , mxDate ?: string ) {
5151 let minDate ;
5252 let maxDate ;
53- let d = dayjs ( date , 'YYYY-MM-DD' ) ;
53+ let d = dayjs ( date ?? null , 'YYYY-MM-DD' ) ;
5454 if ( ! d . isValid ( ) ) {
5555 d = dayjs ( getToday ( ) , 'YYYY-MM-DD' ) ;
5656 }
Original file line number Diff line number Diff line change 1- import { nanoid } from 'nanoid' ;
1+ import { nanoid } from 'nanoid/non-secure ' ;
22import { updateScroll } from 'react-relative-portal' ;
33
44export const generateUniqueId : ( ) => string =
55 process . env . NODE_ENV === 'test' ? ( ) => '$uuid$' : nanoid ;
66
77export const getToday =
88 process . env . NODE_ENV === 'test'
9- ? ( ) => '2017-02-23 '
9+ ? ( ) => '2022-05-18 '
1010 : ( ) => new Date ( ) . toISOString ( ) . substring ( 0 , 10 ) ;
1111
1212let assetRoot = '/assets' ;
You can’t perform that action at this time.
0 commit comments