[Feature Branch] improve(test): Migrate from jest to vitest #2352
Annotations
6 errors and 1 warning
src/Area/__tests__/ref.test.tsx:
node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js#L549
Error: Cannot apply @Injectable decorator multiple times.
❯ ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/injectable.ts:8:13
❯ DecorateConstructor ../../node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js:549:33
❯ Reflect.decorate ../../node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js:143:24
❯ _decorate ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/decorator_utils.ts:67:13
❯ Proxy.decorate ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/decorator_utils.ts:89:9
❯ ../../node_modules/.pnpm/@AntV[email protected]/node_modules/@antv/l7-core/es/inversify.config.js:91:23
|
src/DualAxes/__tests__/ref.test.tsx:
node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js#L549
Error: Cannot apply @Injectable decorator multiple times.
❯ ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/injectable.ts:8:13
❯ DecorateConstructor ../../node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js:549:33
❯ Reflect.decorate ../../node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js:143:24
❯ _decorate ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/decorator_utils.ts:67:13
❯ Proxy.decorate ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/decorator_utils.ts:89:9
❯ ../../node_modules/.pnpm/@AntV[email protected]/node_modules/@antv/l7-core/es/inversify.config.js:91:23
|
src/Line/__tests__/ref.test.tsx:
node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js#L549
Error: Cannot apply @Injectable decorator multiple times.
❯ ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/injectable.ts:8:13
❯ DecorateConstructor ../../node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js:549:33
❯ Reflect.decorate ../../node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js:143:24
❯ _decorate ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/decorator_utils.ts:67:13
❯ Proxy.decorate ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/decorator_utils.ts:89:9
❯ ../../node_modules/.pnpm/@AntV[email protected]/node_modules/@antv/l7-core/es/inversify.config.js:91:23
|
src/Pie/__tests__/donut.test.tsx:
node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js#L549
Error: Cannot apply @Injectable decorator multiple times.
❯ ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/injectable.ts:8:13
❯ DecorateConstructor ../../node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js:549:33
❯ Reflect.decorate ../../node_modules/.pnpm/[email protected]/node_modules/reflect-metadata/Reflect.js:143:24
❯ _decorate ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/decorator_utils.ts:67:13
❯ Proxy.decorate ../../node_modules/.pnpm/[email protected]/node_modules/inversify/src/annotation/decorator_utils.ts:89:9
❯ ../../node_modules/.pnpm/@AntV[email protected]/node_modules/@antv/l7-core/es/inversify.config.js:91:23
|
src/PageContainer/__tests__/index.test.tsx > PageContainer > extra and footer:
packages/ui/src/PageContainer/__tests__/index.test.tsx#L14
Error: Snapshot `PageContainer > extra and footer 1` mismatched
- Expected
+ Received
@@ -142,11 +142,11 @@
>
<input
aria-invalid="false"
autocomplete="off"
date-range="start"
- placeholder="Start date"
+ placeholder="开始日期"
size="12"
value=""
/>
</div>
<div
@@ -182,11 +182,11 @@
>
<input
aria-invalid="false"
autocomplete="off"
date-range="end"
- placeholder="End date"
+ placeholder="结束日期"
size="12"
value=""
/>
</div>
<div
❯ src/PageContainer/__tests__/index.test.tsx:14:37
|
build (16.x, ubuntu-latest)
Process completed with exit code 1.
|
build (16.x, ubuntu-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, pnpm/action-setup@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|