添加 Vitest 测试配置并补充大量单元测试 #268
Annotations
10 errors and 1 warning
|
build
Process completed with exit code 2.
|
|
build:
vitest.config.ts#L4
Cannot find name 'node:url'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
|
|
build:
src/stores/__tests__/settings.test.ts#L4
'vi' is declared but its value is never read.
|
|
build:
src/stores/__tests__/pwa.test.ts#L175
Object literal may only specify known properties, and 'totalSize' does not exist in type '{ totalEntries: number; details: Record<string, number>; }'.
|
|
build:
src/stores/__tests__/pwa.test.ts#L116
Object literal may only specify known properties, and 'totalSize' does not exist in type '{ totalEntries: number; details: Record<string, number>; }'.
|
|
build:
src/stores/__tests__/pwa.test.ts#L102
Object literal may only specify known properties, and 'totalSize' does not exist in type '{ totalEntries: number; details: Record<string, number>; }'.
|
|
build:
src/stores/__tests__/pwa.test.ts#L4
'vi' is declared but its value is never read.
|
|
build:
src/stores/__tests__/onboarding.test.ts#L4
'vi' is declared but its value is never read.
|
|
build:
src/api/__tests__/base.test.ts#L201
'result' is declared but its value is never read.
|
|
build:
src/__tests__/setup.ts#L83
Type 'typeof IntersectionObserverMock' is not assignable to type '{ new (callback: IntersectionObserverCallback, options?: IntersectionObserverInit | undefined): IntersectionObserver; prototype: IntersectionObserver; }'.
|
|
build
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|