Skip to content

Commit 0e27dfa

Browse files
committed
fix: tests
1 parent 59022cd commit 0e27dfa

File tree

7 files changed

+44
-56
lines changed

7 files changed

+44
-56
lines changed

.github/workflows/nodejs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ jobs:
129129
NX_CACHE_VERBOSE_LOGGING: true
130130

131131
- name: 更新 NX 缓存
132-
if: ${{ success() }}
133132
uses: actions/cache/save@v4
134133
with:
135134
path: .nx

packages/babel-plugin-transform-taroapi/__tests__/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as babel from '@babel/core'
22
import * as t from '@babel/types'
3+
import * as definition from '@tarojs/plugin-platform-h5/dist/definition.json'
34

4-
import * as definition from '../../taro-platform-h5/dist/definition.json'
55
import plugin from '../src'
66

77
type ImportType = babel.types.ImportSpecifier | babel.types.ImportDefaultSpecifier | babel.types.ImportNamespaceSpecifier

packages/babel-plugin-transform-taroapi/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"lodash": "^4.17.21"
2323
},
2424
"devDependencies": {
25+
"@tarojs/plugin-platform-h5": "workspace:*",
2526
"@babel/core": "7.24.4",
2627
"@babel/types": "7.24.0",
2728
"@types/babel__core": "7.20.5"

packages/taro-runtime/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"tslib": "^2.6.2"
3838
},
3939
"devDependencies": {
40+
"@tarojs/plugin-framework-vue3": "workspace:*",
4041
"@rollup/plugin-typescript": "^12.1.2",
4142
"@types/react": "^18.2.79",
4243
"@vue/runtime-core": "^3.4.23",

packages/taro-transformer-wx/jest.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const config: Config = {
1010
],
1111
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'node'],
1212
preset: 'ts-jest',
13-
snapshotSerializers: ['jest-taro-helper/lib/snapshot/serializers.js'],
1413
testEnvironment: 'node',
1514
testEnvironmentOptions: {},
1615
testMatch: ['**/__tests__/?(*.)+(spec|test).[jt]s?(x)'],

pnpm-lock.yaml

Lines changed: 41 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/jest.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const config: Config = {
99
},
1010
preset: 'ts-jest',
1111
setupFilesAfterEnv: ['<rootDir>/__tests__/setup/index.ts'],
12-
snapshotSerializers: ['jest-taro-helper/lib/snapshot/serializers.js'],
1312
testEnvironment: 'node',
1413
testEnvironmentOptions: {},
1514
testMatch: ['**/__tests__/?(*.)+(spec|test).[jt]s?(x)'],

0 commit comments

Comments
 (0)