如何在使用 jest 运行测试时忽略一些打字稿错误?
我曾尝试使用 // @ts-ignore
评论,但仍然无法开玩笑。
我正在使用内部使用 jest-expo
的 jest@25.0.2
const styles = Stylesheet.create({
header: {
// here is the typescript error
position: "sticky"
}
})
此处 position: "sticky"
未在 Stylesheet
类型中定义,我想抑制此错误