From 1aae9ce15b2b0945ef0037cdac003fcbb247abed Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Thu, 4 Jul 2024 16:29:48 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B5=8B=E8=AF=95=E8=A6=86=E7=9B=96?= =?UTF-8?q?=E5=BF=BD=E7=95=A5=20facet/mobile=20=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jest.config.base.js | 6 +++++- packages/s2-core/src/common/interface/s2Options.ts | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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 渲染引擎配置参数 & 插件注册