我在寫一個打字稿庫。它揭示了以下功能: export declare function setDictionary(_dictionary: object): void;
export declare function getMessage(error: string): any;
export declare function setLoggerLevel(level: string): v
我正在創建一個應用程序,其中包含要在登錄時發佈的功能。我在摩卡書寫了以下測試代碼。我得到這個錯誤: Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. 我覺得我在做使用做了一些錯誤的()
我相信我試圖實現已經做了很多次,但我無法管理它。 我只希望能夠測試一個元素是否在某個元素上有某個類。 飛濺 import React from 'react';
import { NavLink } from 'react-router-dom'
import Logo from '../shared/logo/index';
import * as styles from './style