我想用柏树的正面报道代码。目前,柏树推荐在伊斯坦布尔进行报道。不幸的是,我不能在下面的堆栈中使用它:
因为:-我没有找到办法让伊斯坦布尔与t-加载器工作,因为伊斯坦布尔的装载机在引擎盖下使用babel -babel装载机不像破坏vue-属性装饰器那样支持装潢师。在打字稿中使用vue /O vue-属性装饰器并不是那么整洁.
以下是一些有用的链接:
下面是回购和快速概述:
git clone https://github.com/akoidan/vue-webpack-typescript && cd vue-webpack-typescriptyarn installyarn run buildyarn run e2e您还可以查看上面回购系统上的babel分支,以查看使用babel而不是ts-加载程序的示例。
下面是使用ts加载程序进行安装的示例:
package.json
{
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"all": true
}
}cypress/iintegration/sample_spec.ts
describe('My first Test', function() {
it('Does not much', function() {
cy.visit('/');
cy.contains('Filtered Users');
})
});cypress/plugins/index.js
module.exports = (on) => {
on('task', require('@cypress/code-coverage/task'));
on('file:preprocessor', require('@cypress/code-coverage/use-browserify-istanbul'));
};cypress/support/index.js
import './commands'
import '@cypress/code-coverage/support';测试铬开发工具
window.__coverage__ // undefinedstdout
----------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
----------|----------|----------|----------|----------|-------------------|
All files | 0 | 0 | 0 | 0 | |
----------|----------|----------|----------|----------|-------------------|发布于 2019-11-16 19:18:30
下面是使用工作codecov的github示例
https://stackoverflow.com/questions/58848507
复制相似问题