@kinora/vitest-reporter 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +45 -2
- package/dist/index.d.mts +37 -0
- package/dist/index.mjs +268 -0
- package/package.json +51 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026-present Joris Gallot <https://github.com/joris-gallot>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @kinora/vitest-reporter
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Vitest reporter that uploads your browser tests to a [kinora](https://github.com/kinora-dev/kinora) server: pass rates, flaky tests, history across runs, and the Playwright trace of each test. Storybook stories land on kinora's Components page.
|
|
4
|
+
|
|
5
|
+
It uploads the tests of Vitest projects running in a browser (browser mode, Storybook) at the end of the run, then their traces and screenshot comparisons. Upload never fails your test run.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm i -D @kinora/vitest-reporter
|
|
11
|
+
# or: pnpm add -D @kinora/vitest-reporter
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
`vitest` (>=4.1) is a peer dependency. Traces need browser mode with the Playwright provider.
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
Add it to `vitest.config.ts`, next to the default reporter:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import { defineConfig } from 'vitest/config'
|
|
22
|
+
|
|
23
|
+
export default defineConfig({
|
|
24
|
+
test: {
|
|
25
|
+
reporters: ['default', ['@kinora/vitest-reporter', { project: { slug: 'web-app' } }]],
|
|
26
|
+
},
|
|
27
|
+
})
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
KINORA_TOKEN=<token> npx vitest run
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Create an API token in the kinora dashboard (Settings → Workspace). Self-hosting? Point at your server with `KINORA_URL`.
|
|
35
|
+
|
|
36
|
+
## Node tests
|
|
37
|
+
|
|
38
|
+
Only browser tests are uploaded by default: Node unit tests are usually thousands of fast tests with no trace, and would eat your plan's monthly result quota. Upload them too with `include: 'all'`.
|
|
39
|
+
|
|
40
|
+
## Documentation
|
|
41
|
+
|
|
42
|
+
**https://docs.kinora.dev/guides/vitest/**
|
|
43
|
+
|
|
44
|
+
## License
|
|
45
|
+
|
|
46
|
+
MIT
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AttachmentKind, CiMeta, GitMeta } from "@kinora/core";
|
|
2
|
+
import { Reporter, TestModule, Vitest } from "vitest/node";
|
|
3
|
+
//#region src/convert.d.ts
|
|
4
|
+
type IncludeTests = 'browser' | 'all';
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/index.d.ts
|
|
7
|
+
export interface KinoraVitestReporterOptions {
|
|
8
|
+
/** kinora server base URL. Defaults to env KINORA_URL, then the hosted cloud. Set for self-host. */
|
|
9
|
+
url?: string;
|
|
10
|
+
/** Project API token. Defaults to env KINORA_TOKEN (keep it out of the config file). */
|
|
11
|
+
token?: string;
|
|
12
|
+
/** Target project. `name` defaults to `slug`. */
|
|
13
|
+
project: {
|
|
14
|
+
slug: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
};
|
|
17
|
+
git?: GitMeta;
|
|
18
|
+
ci?: CiMeta;
|
|
19
|
+
/** Which attachment kinds to upload. Defaults to `['trace', 'snapshot']`. */
|
|
20
|
+
uploadAttachments?: AttachmentKind[];
|
|
21
|
+
/**
|
|
22
|
+
* Which tests to upload. `browser` (default) keeps the tests of projects running in a browser
|
|
23
|
+
* (browser mode, Storybook) and leaves Node unit tests out. `all` uploads everything; mind the
|
|
24
|
+
* plan's monthly result quota with large unit suites.
|
|
25
|
+
*/
|
|
26
|
+
include?: IncludeTests;
|
|
27
|
+
}
|
|
28
|
+
export default class KinoraVitestReporter implements Reporter {
|
|
29
|
+
private readonly options;
|
|
30
|
+
private startedAt;
|
|
31
|
+
constructor(options: KinoraVitestReporterOptions);
|
|
32
|
+
onInit(vitest: Vitest): void;
|
|
33
|
+
onTestRunStart(): void;
|
|
34
|
+
onTestRunEnd(modules: ReadonlyArray<TestModule>): Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export {};
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import process from "node:process";
|
|
3
|
+
import { A11Y_IMPACTS, DEFAULT_KINORA_URL, DEFAULT_UPLOAD_ATTACHMENTS, IngestError, MAX_A11Y_NODES, MAX_A11Y_VIOLATIONS, STORY_ANNOTATION, createIngestClient, detectCiEnv, isUploadableAttachment, makeTestKey, stripAnsi } from "@kinora/core";
|
|
4
|
+
//#region src/convert.ts
|
|
5
|
+
function identity(test) {
|
|
6
|
+
const file = test.module.relativeModuleId;
|
|
7
|
+
const suites = [];
|
|
8
|
+
for (let parent = test.parent; parent.type === "suite"; parent = parent.parent) suites.unshift(parent.name);
|
|
9
|
+
return {
|
|
10
|
+
file,
|
|
11
|
+
titlePath: [
|
|
12
|
+
file,
|
|
13
|
+
...suites,
|
|
14
|
+
test.name
|
|
15
|
+
],
|
|
16
|
+
projectName: test.project.name
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function statusOf(test) {
|
|
20
|
+
const { state } = test.result();
|
|
21
|
+
if (state === "skipped") return "skipped";
|
|
22
|
+
if (state === "failed") return "unexpected";
|
|
23
|
+
if (state === "passed") return test.diagnostic()?.flaky ? "flaky" : "expected";
|
|
24
|
+
}
|
|
25
|
+
function storyOf(test, titlePath) {
|
|
26
|
+
const meta = test.meta();
|
|
27
|
+
if (!meta.storyId) return void 0;
|
|
28
|
+
if (!meta.componentName) return meta.storyId.replace("--", "/");
|
|
29
|
+
return `${meta.componentName}/${titlePath[1]}`;
|
|
30
|
+
}
|
|
31
|
+
const MAX_TEXT = 300;
|
|
32
|
+
const truncate = (s) => s.length > MAX_TEXT ? `${s.slice(0, MAX_TEXT)}…` : s;
|
|
33
|
+
const isImpact = (v) => A11Y_IMPACTS.includes(v);
|
|
34
|
+
function selector(target) {
|
|
35
|
+
if (!Array.isArray(target)) return "";
|
|
36
|
+
return truncate(target.map((t) => Array.isArray(t) ? t.join(" >>> ") : String(t)).join(" "));
|
|
37
|
+
}
|
|
38
|
+
function violation(v) {
|
|
39
|
+
if (!v.id) return [];
|
|
40
|
+
const nodes = v.nodes ?? [];
|
|
41
|
+
return [{
|
|
42
|
+
id: v.id,
|
|
43
|
+
...isImpact(v.impact) && { impact: v.impact },
|
|
44
|
+
help: truncate(v.help ?? v.id),
|
|
45
|
+
...v.helpUrl && { helpUrl: v.helpUrl },
|
|
46
|
+
nodes: nodes.slice(0, MAX_A11Y_NODES).map((n) => selector(n.target)).filter(Boolean),
|
|
47
|
+
nodeCount: nodes.length
|
|
48
|
+
}];
|
|
49
|
+
}
|
|
50
|
+
const AXE_FAILURE = /Expected the HTML found at \$\('(.+?)'\) to have no violations:[\s\S]*?Received:\s*"(.+?) \(([\w-]+)\)"[\s\S]*?more information on this issue here:\s*(https:\/\/\S+)/g;
|
|
51
|
+
function a11yFromError(test) {
|
|
52
|
+
const message = test.result().errors?.find((e) => e.message.includes("toHaveNoViolations"))?.message;
|
|
53
|
+
if (!message) return void 0;
|
|
54
|
+
const byRule = /* @__PURE__ */ new Map();
|
|
55
|
+
for (const [, target, help, id, helpUrl] of stripAnsi(message).matchAll(AXE_FAILURE)) {
|
|
56
|
+
const v = byRule.get(id) ?? {
|
|
57
|
+
id,
|
|
58
|
+
help: truncate(help),
|
|
59
|
+
helpUrl,
|
|
60
|
+
nodes: [],
|
|
61
|
+
nodeCount: 0
|
|
62
|
+
};
|
|
63
|
+
if (v.nodes.length < MAX_A11Y_NODES) v.nodes.push(truncate(target));
|
|
64
|
+
v.nodeCount++;
|
|
65
|
+
byRule.set(id, v);
|
|
66
|
+
}
|
|
67
|
+
return byRule.size ? {
|
|
68
|
+
status: "failed",
|
|
69
|
+
violations: [...byRule.values()].slice(0, MAX_A11Y_VIOLATIONS)
|
|
70
|
+
} : void 0;
|
|
71
|
+
}
|
|
72
|
+
function a11yOf(test) {
|
|
73
|
+
const report = test.meta().reports?.find((r) => r.type === "a11y");
|
|
74
|
+
const status = report?.status;
|
|
75
|
+
if (status !== "passed" && status !== "warning" && status !== "failed") return a11yFromError(test);
|
|
76
|
+
const result = report?.result ?? {};
|
|
77
|
+
if (result.error) {
|
|
78
|
+
const { message } = result.error;
|
|
79
|
+
const text = typeof message === "string" ? message : typeof result.error === "string" ? result.error : "The accessibility check failed.";
|
|
80
|
+
return {
|
|
81
|
+
status: "failed",
|
|
82
|
+
violations: [],
|
|
83
|
+
error: truncate(text)
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
status,
|
|
88
|
+
violations: (result.violations ?? []).slice(0, MAX_A11Y_VIOLATIONS).flatMap(violation)
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function slug(name) {
|
|
92
|
+
return name.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "") || "screenshot";
|
|
93
|
+
}
|
|
94
|
+
function attachmentsOf(test) {
|
|
95
|
+
const attachments = [];
|
|
96
|
+
let comparisons = 0;
|
|
97
|
+
for (const annotation of test.annotations()) if (annotation.type === "traces" && annotation.attachment?.path) attachments.push({
|
|
98
|
+
name: "trace",
|
|
99
|
+
contentType: "application/zip",
|
|
100
|
+
path: annotation.attachment.path,
|
|
101
|
+
hasBody: false
|
|
102
|
+
});
|
|
103
|
+
for (const artifact of test.artifacts()) {
|
|
104
|
+
if (artifact.type === "internal:failureScreenshot") {
|
|
105
|
+
for (const a of artifact.attachments ?? []) if (a.path) attachments.push({
|
|
106
|
+
name: "screenshot",
|
|
107
|
+
contentType: a.contentType ?? "image/png",
|
|
108
|
+
path: a.path,
|
|
109
|
+
hasBody: false
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
if (artifact.type === "internal:toMatchScreenshot") {
|
|
113
|
+
comparisons++;
|
|
114
|
+
const base = `${slug(test.name)}${comparisons > 1 ? `-${comparisons}` : ""}`;
|
|
115
|
+
for (const a of artifact.attachments ?? []) if (a.path && a.name) attachments.push({
|
|
116
|
+
name: `${base}-${a.name === "reference" ? "expected" : a.name}.png`,
|
|
117
|
+
contentType: a.contentType ?? "image/png",
|
|
118
|
+
path: a.path,
|
|
119
|
+
hasBody: false
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return attachments;
|
|
124
|
+
}
|
|
125
|
+
function isBrowserTest(test) {
|
|
126
|
+
return !!test.project.config.browser?.enabled;
|
|
127
|
+
}
|
|
128
|
+
const STORYBOOK_DEBUG_LINE = /^\s*Click to debug the error directly in Storybook:.*$/m;
|
|
129
|
+
function cleanMessage(message) {
|
|
130
|
+
return stripAnsi(message).replace(STORYBOOK_DEBUG_LINE, "").trim();
|
|
131
|
+
}
|
|
132
|
+
function toNormTest(test) {
|
|
133
|
+
const status = statusOf(test);
|
|
134
|
+
if (!status) return void 0;
|
|
135
|
+
const { file, titlePath, projectName } = identity(test);
|
|
136
|
+
const diagnostic = test.diagnostic();
|
|
137
|
+
const story = storyOf(test, titlePath);
|
|
138
|
+
const a11y = a11yOf(test);
|
|
139
|
+
return {
|
|
140
|
+
testKey: makeTestKey(file, titlePath, projectName),
|
|
141
|
+
title: test.name,
|
|
142
|
+
titlePath,
|
|
143
|
+
file,
|
|
144
|
+
line: test.location?.line ?? 0,
|
|
145
|
+
column: test.location?.column ?? 0,
|
|
146
|
+
projectName,
|
|
147
|
+
status,
|
|
148
|
+
ok: status !== "unexpected",
|
|
149
|
+
duration: Math.round(diagnostic?.duration ?? 0),
|
|
150
|
+
retries: diagnostic?.retryCount ?? 0,
|
|
151
|
+
tags: [...test.tags ?? []],
|
|
152
|
+
annotations: [...test.annotations().filter((a) => a.type !== "traces").map((a) => ({
|
|
153
|
+
type: a.type,
|
|
154
|
+
description: a.message
|
|
155
|
+
})), ...story ? [{
|
|
156
|
+
type: STORY_ANNOTATION,
|
|
157
|
+
description: story
|
|
158
|
+
}] : []],
|
|
159
|
+
errors: (test.result().errors ?? []).map((e) => ({
|
|
160
|
+
message: cleanMessage(e.message),
|
|
161
|
+
stack: e.stack
|
|
162
|
+
})),
|
|
163
|
+
attachments: attachmentsOf(test),
|
|
164
|
+
...a11y && { a11y }
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
function toNormTests(modules, include = "browser") {
|
|
168
|
+
const tests = [];
|
|
169
|
+
let skippedNodeTests = 0;
|
|
170
|
+
for (const module of modules) for (const test of module.children.allTests()) {
|
|
171
|
+
if (include === "browser" && !isBrowserTest(test)) {
|
|
172
|
+
skippedNodeTests++;
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
const norm = toNormTest(test);
|
|
176
|
+
if (norm) tests.push(norm);
|
|
177
|
+
}
|
|
178
|
+
return {
|
|
179
|
+
tests,
|
|
180
|
+
skippedNodeTests
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/index.ts
|
|
185
|
+
function countsOf(tests) {
|
|
186
|
+
const counts = {
|
|
187
|
+
total: tests.length,
|
|
188
|
+
expected: 0,
|
|
189
|
+
unexpected: 0,
|
|
190
|
+
flaky: 0,
|
|
191
|
+
skipped: 0
|
|
192
|
+
};
|
|
193
|
+
for (const t of tests) counts[t.status]++;
|
|
194
|
+
return counts;
|
|
195
|
+
}
|
|
196
|
+
var KinoraVitestReporter = class {
|
|
197
|
+
options;
|
|
198
|
+
startedAt = /* @__PURE__ */ new Date();
|
|
199
|
+
constructor(options) {
|
|
200
|
+
this.options = options;
|
|
201
|
+
}
|
|
202
|
+
onInit(vitest) {
|
|
203
|
+
this.startedAt = /* @__PURE__ */ new Date();
|
|
204
|
+
vitest.config.includeTaskLocation = true;
|
|
205
|
+
for (const project of vitest.projects) project.config.includeTaskLocation = true;
|
|
206
|
+
}
|
|
207
|
+
onTestRunStart() {
|
|
208
|
+
this.startedAt = /* @__PURE__ */ new Date();
|
|
209
|
+
}
|
|
210
|
+
async onTestRunEnd(modules) {
|
|
211
|
+
const url = this.options.url ?? process.env.KINORA_URL ?? DEFAULT_KINORA_URL;
|
|
212
|
+
const token = this.options.token ?? process.env.KINORA_TOKEN;
|
|
213
|
+
if (!token) {
|
|
214
|
+
console.warn("[kinora] skipping upload: missing token (set KINORA_TOKEN)");
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
const { tests, skippedNodeTests } = toNormTests(modules, this.options.include);
|
|
218
|
+
if (!tests.length) {
|
|
219
|
+
console.warn(skippedNodeTests ? `[kinora] nothing uploaded: no browser tests in this run (${skippedNodeTests} Node tests left out). Set include: 'all' to upload Node tests too.` : "[kinora] nothing uploaded: no tests ran");
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
const detected = detectCiEnv(process.env);
|
|
223
|
+
const payload = {
|
|
224
|
+
project: {
|
|
225
|
+
slug: this.options.project.slug,
|
|
226
|
+
name: this.options.project.name ?? this.options.project.slug
|
|
227
|
+
},
|
|
228
|
+
run: {
|
|
229
|
+
startedAt: this.startedAt.toISOString(),
|
|
230
|
+
duration: Date.now() - this.startedAt.getTime(),
|
|
231
|
+
counts: countsOf(tests),
|
|
232
|
+
git: this.options.git ?? detected.git,
|
|
233
|
+
ci: this.options.ci ?? detected.ci
|
|
234
|
+
},
|
|
235
|
+
tests
|
|
236
|
+
};
|
|
237
|
+
try {
|
|
238
|
+
const client = createIngestClient({
|
|
239
|
+
baseUrl: url,
|
|
240
|
+
token
|
|
241
|
+
});
|
|
242
|
+
const res = await client.uploadRun(payload);
|
|
243
|
+
const kinds = this.options.uploadAttachments ?? DEFAULT_UPLOAD_ATTACHMENTS;
|
|
244
|
+
let artifacts = 0;
|
|
245
|
+
for (const t of tests) for (const a of t.attachments) {
|
|
246
|
+
if (!a.path || !isUploadableAttachment(a, kinds)) continue;
|
|
247
|
+
try {
|
|
248
|
+
await client.uploadArtifact({
|
|
249
|
+
runId: res.runId,
|
|
250
|
+
testKey: t.testKey,
|
|
251
|
+
name: a.name,
|
|
252
|
+
contentType: a.contentType,
|
|
253
|
+
body: await readFile(a.path)
|
|
254
|
+
});
|
|
255
|
+
artifacts++;
|
|
256
|
+
} catch (err) {
|
|
257
|
+
console.warn(`[kinora] ${a.name} upload failed for ${t.testKey}:`, err instanceof Error ? err.message : err);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
console.log(`[kinora] uploaded ${res.tests} tests + ${artifacts} artifacts (run ${res.runId})`);
|
|
261
|
+
} catch (err) {
|
|
262
|
+
if (err instanceof IngestError && err.status === 402) console.warn(`[kinora] ${err.message}`);
|
|
263
|
+
else console.error("[kinora] upload failed:", err instanceof Error ? err.message : err);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
//#endregion
|
|
268
|
+
export { KinoraVitestReporter as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinora/vitest-reporter",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.2.0",
|
|
5
|
+
"description": "Vitest reporter that uploads browser-mode and Storybook test results to a kinora server",
|
|
6
|
+
"author": "Joris Gallot",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/kinora-dev/kinora#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/kinora-dev/kinora.git",
|
|
12
|
+
"directory": "packages/vitest-reporter"
|
|
13
|
+
},
|
|
14
|
+
"bugs": "https://github.com/kinora-dev/kinora/issues",
|
|
15
|
+
"keywords": [
|
|
16
|
+
"vitest",
|
|
17
|
+
"storybook",
|
|
18
|
+
"reporter",
|
|
19
|
+
"test-report",
|
|
20
|
+
"ci",
|
|
21
|
+
"kinora"
|
|
22
|
+
],
|
|
23
|
+
"exports": {
|
|
24
|
+
".": "./dist/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"main": "./dist/index.mjs",
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=20.20.2"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"vitest": ">=4.1.11"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@kinora/core": "0.9.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^26.6.5",
|
|
44
|
+
"@vitest/coverage-v8": "^5.0.3",
|
|
45
|
+
"tsdown": "^0.23.1",
|
|
46
|
+
"typescript": "~6.0.3",
|
|
47
|
+
"vitest": "^5.0.3"
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "tsdown",
|
|
51
|
+
"typecheck": "tsc --noEmit",
|
|
52
|
+
"test": "vitest run --coverage"
|
|
53
|
+
}
|
|
6
54
|
}
|