Typescript 如何让jasmine.json包含我的声明合并文件?

Typescript 如何让jasmine.json包含我的声明合并文件?,typescript,jasmine,namespaces,jasmine-node,Typescript,Jasmine,Namespaces,Jasmine Node,在我的应用程序中,我使用声明合并从Express自定义请求类型 declare global { namespace Express { export interface Request { base?: BaseServerInfo; } } } 问题是Jasmine没有接收到这个消息,当我运行它时,它会给我类型错误。 当我将声明代码手动复制到测试中时,类型错误消失 如何让Jasmine识别并预加载我的声明文件 我已尝试将其添加到帮助程序,但没有成功(路径

在我的应用程序中,我使用声明合并从Express自定义
请求
类型

declare global {
  namespace Express {
    export interface Request {
      base?: BaseServerInfo;
    }
  }
}
问题是Jasmine没有接收到这个消息,当我运行它时,它会给我类型错误。 当我将声明代码手动复制到测试中时,类型错误消失

如何让Jasmine识别并预加载我的声明文件

我已尝试将其添加到
帮助程序
,但没有成功(路径正确)

{
  "spec_dir": "test",
  "spec_files": ["**/*[sS]pec.ts"],
  "helpers": ["./src/types/_declaration-merging.d.ts"],
  "stopSpecOnExpectationFailure": false,
  "random": true,
  "reporters": [
    {
      "name": "jasmine-spec-reporter#SpecReporter",
      "options": {
        "displayStacktrace": "all"
      }
    }
  ]
}