Skip to content

Commit

Permalink
chore: 测试覆盖忽略 facet/mobile 目录
Browse files Browse the repository at this point in the history
  • Loading branch information
lijinke666 committed Jul 4, 2024
1 parent 73b9b6c commit 1aae9ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion jest.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ module.exports = {
'!**/index.{ts,tsx,js,vue}',
'!**/icons.{ts,tsx,js,vue}',
],
coveragePathIgnorePatterns: ['hd-adapter/index.ts', 'packages/s2-vue'],
coveragePathIgnorePatterns: [
'facet/mobile',
'hd-adapter/index.ts',
'packages/s2-vue',
],
coverageReporters: ['text', 'clover', 'html'],
transformIgnorePatterns: [],
testRegex: '/__tests__/*.*(-|\\.)spec\\.(tsx|ts|js|vue)?$',
Expand Down
2 changes: 1 addition & 1 deletion packages/s2-core/src/common/interface/s2Options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export interface S2BasicOptions<
/**
* 设备类型: pc / mobile
*/
device?: DeviceType;
device?: `${DeviceType}`;

/**
* 自定义 AntV/G 渲染引擎配置参数 & 插件注册
Expand Down

0 comments on commit 1aae9ce

Please sign in to comment.