Skip to content

Commit e767271

Browse files
committed
fix(ci): fix typecheck ordering, octocov config format, and type errors
- Move Build step before Type check in lint job so workspace deps resolve - Fix octocov acceptable format from map to string expression - Add @types/react-dom to @vimee/react devDependencies - Remove unused imports in useVim.test.tsx
1 parent b5ecdcc commit e767271

7 files changed

Lines changed: 15 additions & 24 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
- name: Lint
2323
run: bun run lint
2424

25-
- name: Type check
26-
run: bun run typecheck
27-
2825
- name: Build
2926
run: bun run build
3027

28+
- name: Type check
29+
run: bun run typecheck
30+
3131
test-core:
3232
runs-on: ubuntu-latest
3333
steps:

‎bun.lock‎

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

‎packages/core/.octocov.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ repository: konojunya/vimee/packages/core
22
coverage:
33
paths:
44
- coverage/lcov.info
5-
acceptable:
6-
current: ">= 80%"
7-
diff: ">= -5.0%"
5+
acceptable: current >= 80%
86
codeToTestRatio:
97
code:
108
- "src/**/*.ts"
@@ -13,9 +11,7 @@ codeToTestRatio:
1311
test:
1412
- "src/**/*.test.ts"
1513
testExecutionTime:
16-
acceptable:
17-
current: "< 1min"
18-
diff: "< 30sec"
14+
acceptable: current < 1min
1915
comment:
2016
enable: true
2117
summary:

‎packages/react/.octocov.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ repository: konojunya/vimee/packages/react
22
coverage:
33
paths:
44
- coverage/lcov.info
5-
acceptable:
6-
current: ">= 80%"
7-
diff: ">= -5.0%"
5+
acceptable: current >= 80%
86
codeToTestRatio:
97
code:
108
- "src/**/*.ts"
@@ -16,9 +14,7 @@ codeToTestRatio:
1614
- "src/**/*.test.ts"
1715
- "src/**/*.test.tsx"
1816
testExecutionTime:
19-
acceptable:
20-
current: "< 1min"
21-
diff: "< 30sec"
17+
acceptable: current < 1min
2218
comment:
2319
enable: true
2420
summary:

‎packages/react/package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"devDependencies": {
3131
"@testing-library/react": "^16.0.0",
3232
"@types/react": "^19.0.0",
33+
"@types/react-dom": "^19.0.0",
3334
"happy-dom": "^18.0.1",
3435
"react": "^19.0.0",
3536
"react-dom": "^19.0.0",

‎packages/react/src/__tests__/useVim.test.tsx‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
* @vitest-environment happy-dom
99
*/
1010

11-
import { describe, it, expect, vi, beforeEach } from "vitest";
11+
import { describe, it, expect, vi } from "vitest";
1212
import React from "react";
1313
import { createRoot } from "react-dom/client";
1414
import { flushSync } from "react-dom";
1515
import { useVim } from "../useVim";
16-
import type { UseVimReturn } from "../useVim";
1716

1817
// =====================
1918
// Custom renderHook implementation
@@ -385,7 +384,7 @@ describe("useVim", () => {
385384

386385
expect(onAction).toHaveBeenCalled();
387386
const actionTypes = onAction.mock.calls.map(
388-
([action]: [any]) => action.type,
387+
([action]: any[]) => action.type,
389388
);
390389
expect(actionTypes).toContain("content-change");
391390
unmount();

‎packages/shiki-editor/.octocov.yml‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ repository: konojunya/vimee/packages/shiki-editor
22
coverage:
33
paths:
44
- coverage/lcov.info
5-
acceptable:
6-
current: ">= 80%"
7-
diff: ">= -5.0%"
5+
acceptable: current >= 80%
86
codeToTestRatio:
97
code:
108
- "src/**/*.ts"
@@ -16,9 +14,7 @@ codeToTestRatio:
1614
- "src/**/*.test.ts"
1715
- "src/**/*.test.tsx"
1816
testExecutionTime:
19-
acceptable:
20-
current: "< 1min"
21-
diff: "< 30sec"
17+
acceptable: current < 1min
2218
comment:
2319
enable: true
2420
summary:

0 commit comments

Comments
 (0)