我有utils.js文件。 export function categoryIdToCategoryName(categoryId) {
let name;
switch (categoryId) {
case constants.RISK_CATEGORY_LOW:
name = 'low';
break;
case constants.RISK_
我一直在努力,因爲當我運行測試,我有這個錯誤嘲諷React-Intl library與Jest: Invariant Violation: [React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.
這個庫的documentation說,