diff --git a/jest.config.base.js b/jest.config.base.js index 9d49dbb98c..7a9905c693 100644 --- a/jest.config.base.js +++ b/jest.config.base.js @@ -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)?$', diff --git a/packages/s2-core/src/common/interface/s2Options.ts b/packages/s2-core/src/common/interface/s2Options.ts index 0eb22ef77e..7c949a10c2 100644 --- a/packages/s2-core/src/common/interface/s2Options.ts +++ b/packages/s2-core/src/common/interface/s2Options.ts @@ -168,7 +168,7 @@ export interface S2BasicOptions< /** * 设备类型: pc / mobile */ - device?: DeviceType; + device?: `${DeviceType}`; /** * 自定义 AntV/G 渲染引擎配置参数 & 插件注册