Node.js18의 node:test형
3978 단어 Node.jsTypeScripttech
@types/node
아직 없는 것 같아요.declare module "node:test" {
type TestContext = {
diagnostic(message: string): void;
runOnly(shouldRunOnlyTests: boolean): void;
skip(...message: string[]): void;
todo(...message: string[]): void;
test: Test;
};
type TestCb =
| ((testContext: TestContext) => void)
| ((testContext: TestContext) => Promise<void>);
type Test = (name: string, cb: TestCb) => void;
const test: Test;
export default test;
}
Reference
이 문제에 관하여(Node.js18의 node:test형), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://zenn.dev/sosukesuzuki/articles/e981603c1af756텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)