【发布时间】:2020-08-27 14:32:17
【问题描述】:
我正在使用页面对象模式在 TestCafe 中编写测试。
一些页面对象是事先编写好的(在实际使用之前),因为我知道页面并且知道会发生什么。
但是,当尝试使用未使用的页面对象运行测试时,我会收到如下错误消息:
Error: TypeScript compilation failed.
C:/path-to/a.page-object.ts (40, 7): 'PageObjectExample' is declared but never used.
是否有 TestCafe 或 TypeScript 选项(暂时)允许编译这些类型的测试?
【问题讨论】:
-
你也有eslint检查吗?
标签: typescript testing automated-tests testcafe pageobjects