我在Java中使用反射来获取TestNG注释中的一些信息,就像下面的代码片段中所示:
Reflections reflections = new Reflections("", new MethodAnnotationsScanner())
Set<Method> annotated = reflections.getMethodsAnnotatedWith(Test.class)
目前,我有一个带有jest装饰器插件的jest框架,以帮助使用注释。
我如何在typescript中复制相同的反射方法,以从注释中收集这些信息?