From a4ac67d052cca48a0e6fe2f7617dc01eafdf5e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Sat, 4 Jan 2025 17:40:19 +0800 Subject: [PATCH] test: update snapshot --- .../__snapshots__/subpackage.spec.ts.snap | 42 ------------------- .../playground/__tests__/subpackage.spec.ts | 3 -- 2 files changed, 45 deletions(-) diff --git a/packages/playground/__tests__/__snapshots__/subpackage.spec.ts.snap b/packages/playground/__tests__/__snapshots__/subpackage.spec.ts.snap index 5129fffadcf..c7c60142bed 100644 --- a/packages/playground/__tests__/__snapshots__/subpackage.spec.ts.snap +++ b/packages/playground/__tests__/__snapshots__/subpackage.spec.ts.snap @@ -15,19 +15,13 @@ exports._imports_2 = _imports_2; " `; -exports[`subpackage playground uni-app build:mp-weixin: uni-app build:mp-weixin pages/index/index.wxml 1`] = `""`; - exports[`subpackage playground uni-app build:mp-weixin: uni-app build:mp-weixin pages/index/index.wxss 1`] = ` "@import "../../app.wxss"; " `; -exports[`subpackage playground uni-app build:mp-weixin: uni-app build:mp-weixin uni_modules/test-module/components/test-component/test-component.wxml 1`] = `""`; - exports[`subpackage playground uni-app build:mp-weixin: uni-app build:mp-weixin uni_modules/test-module/components/test-component/test-component.wxss 1`] = `""`; -exports[`subpackage playground uni-app build:mp-weixin: uni-app build:mp-weixin uni_modules/test-module/pages/index/index.wxml 1`] = `""`; - exports[`subpackage playground uni-app build:mp-weixin: uni-app build:mp-weixin uni_modules/test-module/pages/index/index.wxss 1`] = ` "@import "../../../../app.wxss"; " @@ -48,19 +42,13 @@ exports._imports_2 = _imports_2; " `; -exports[`subpackage playground uni-app dev:mp-weixin: uni-app dev:mp-weixin pages/index/index.wxml 1`] = `""`; - exports[`subpackage playground uni-app dev:mp-weixin: uni-app dev:mp-weixin pages/index/index.wxss 1`] = ` "@import "../../app.wxss"; " `; -exports[`subpackage playground uni-app dev:mp-weixin: uni-app dev:mp-weixin uni_modules/test-module/components/test-component/test-component.wxml 1`] = `""`; - exports[`subpackage playground uni-app dev:mp-weixin: uni-app dev:mp-weixin uni_modules/test-module/components/test-component/test-component.wxss 1`] = `""`; -exports[`subpackage playground uni-app dev:mp-weixin: uni-app dev:mp-weixin uni_modules/test-module/pages/index/index.wxml 1`] = `""`; - exports[`subpackage playground uni-app dev:mp-weixin: uni-app dev:mp-weixin uni_modules/test-module/pages/index/index.wxss 1`] = ` "@import "../../../../app.wxss"; " @@ -81,11 +69,6 @@ exports._imports_2 = _imports_2; " `; -exports[`subpackage playground uni-app-x build:mp-weixin: uni-app-x build:mp-weixin pages/index/index.wxml 1`] = ` -" -" -`; - exports[`subpackage playground uni-app-x build:mp-weixin: uni-app-x build:mp-weixin pages/index/index.wxss 1`] = ` "@import "../../app.wxss"; @import "../../uvue.wxss"; @@ -93,21 +76,11 @@ exports[`subpackage playground uni-app-x build:mp-weixin: uni-app-x build:mp-wei " `; -exports[`subpackage playground uni-app-x build:mp-weixin: uni-app-x build:mp-weixin uni_modules/test-module/components/test-component/test-component.wxml 1`] = ` -" -" -`; - exports[`subpackage playground uni-app-x build:mp-weixin: uni-app-x build:mp-weixin uni_modules/test-module/components/test-component/test-component.wxss 1`] = ` ":host{display:flex;flex-direction:column} " `; -exports[`subpackage playground uni-app-x build:mp-weixin: uni-app-x build:mp-weixin uni_modules/test-module/pages/index/index.wxml 1`] = ` -" -" -`; - exports[`subpackage playground uni-app-x build:mp-weixin: uni-app-x build:mp-weixin uni_modules/test-module/pages/index/index.wxss 1`] = ` "@import "../../../../app.wxss"; @import "../../../../uvue.wxss"; @@ -130,11 +103,6 @@ exports._imports_2 = _imports_2; " `; -exports[`subpackage playground uni-app-x dev:mp-weixin: uni-app-x dev:mp-weixin pages/index/index.wxml 1`] = ` -" -" -`; - exports[`subpackage playground uni-app-x dev:mp-weixin: uni-app-x dev:mp-weixin pages/index/index.wxss 1`] = ` "@import "../../app.wxss"; @import "../../uvue.wxss"; @@ -142,21 +110,11 @@ exports[`subpackage playground uni-app-x dev:mp-weixin: uni-app-x dev:mp-weixin " `; -exports[`subpackage playground uni-app-x dev:mp-weixin: uni-app-x dev:mp-weixin uni_modules/test-module/components/test-component/test-component.wxml 1`] = ` -" -" -`; - exports[`subpackage playground uni-app-x dev:mp-weixin: uni-app-x dev:mp-weixin uni_modules/test-module/components/test-component/test-component.wxss 1`] = ` ":host{display:flex;flex-direction:column} " `; -exports[`subpackage playground uni-app-x dev:mp-weixin: uni-app-x dev:mp-weixin uni_modules/test-module/pages/index/index.wxml 1`] = ` -" -" -`; - exports[`subpackage playground uni-app-x dev:mp-weixin: uni-app-x dev:mp-weixin uni_modules/test-module/pages/index/index.wxss 1`] = ` "@import "../../../../app.wxss"; @import "../../../../uvue.wxss"; diff --git a/packages/playground/__tests__/subpackage.spec.ts b/packages/playground/__tests__/subpackage.spec.ts index eea7c30c0d0..96329565bb5 100644 --- a/packages/playground/__tests__/subpackage.spec.ts +++ b/packages/playground/__tests__/subpackage.spec.ts @@ -35,11 +35,8 @@ describe('subpackage playground', () => { console.log(`${type} npm run ${script} end`) const files = [ 'common/assets.js', - 'pages/index/index.wxml', 'pages/index/index.wxss', - 'uni_modules/test-module/pages/index/index.wxml', 'uni_modules/test-module/pages/index/index.wxss', - 'uni_modules/test-module/components/test-component/test-component.wxml', 'uni_modules/test-module/components/test-component/test-component.wxss', ] files.forEach((file) => {