@unotest/viewer 0.5.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.
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
6
+ <title>unotest — viewer</title>
7
+ <script type="module" crossorigin src="/assets/index-BOp05bOA.js"></script>
8
+ <link rel="stylesheet" crossorigin href="/assets/index-B-UQ0ohg.css">
9
+ </head>
10
+ <body>
11
+ <div id="root"></div>
12
+ </body>
13
+ </html>
package/package.json ADDED
@@ -0,0 +1,130 @@
1
+ {
2
+ "name": "@unotest/viewer",
3
+ "version": "0.5.0",
4
+ "description": "Localhost HTTP+WS viewer for @unotest/web. NestJS server + React+MobX frontend. Reads run-artifacts from unotest/.runs/, spawns test runs via @unotest/web bin, broadcasts live events over WS. Future Electron build target.",
5
+ "license": "MIT",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "author": "Ivan Volkov <ivan@volkov.io>",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/unotest/viewer.git"
13
+ },
14
+ "type": "module",
15
+ "packageManager": "pnpm@10.12.4",
16
+ "engines": {
17
+ "node": ">=20"
18
+ },
19
+ "bin": {
20
+ "unotest-viewer": "./bin/unotest-viewer.js"
21
+ },
22
+ "main": "./dist/server/main.js",
23
+ "types": "./dist/server/main.d.ts",
24
+ "exports": {
25
+ "./server": {
26
+ "types": "./dist/server/main.d.ts",
27
+ "import": "./dist/server/main.js"
28
+ },
29
+ "./web/*": "./dist/web/*"
30
+ },
31
+ "files": [
32
+ "bin",
33
+ "dist",
34
+ "CHANGELOG.md",
35
+ "LICENSE",
36
+ "README.md"
37
+ ],
38
+ "scripts": {
39
+ "typecheck": "tsc --noEmit",
40
+ "compile:server": "tsup",
41
+ "compile:web": "vite build",
42
+ "compile": "pnpm run compile:server && pnpm run compile:web",
43
+ "dev:server": "UNOTEST_VIEWER_PORT=5174 tsx watch src/server/main.ts",
44
+ "dev:web": "vite",
45
+ "dev": "pnpm run --parallel '/^dev:/'",
46
+ "start": "node dist/server/main.js",
47
+ "test:server": "node --experimental-vm-modules --no-warnings ./node_modules/jest/bin/jest.js --passWithNoTests --forceExit",
48
+ "test:web": "vitest run --passWithNoTests",
49
+ "test": "pnpm run test:server && pnpm run test:web",
50
+ "test:e2e:web": "node test/web-e2e/smoke.mjs",
51
+ "verify": "pnpm typecheck && pnpm test",
52
+ "obfuscate": "node scripts/obfuscate.mjs",
53
+ "build": "pnpm verify && pnpm compile && pnpm obfuscate && pnpm check:tarball",
54
+ "prepublishOnly": "pnpm build",
55
+ "check:no-cyrillic": "node scripts/check-no-cyrillic.mjs",
56
+ "check:no-internal-refs": "node scripts/check-no-internal-refs.mjs",
57
+ "check:surface": "pnpm check:no-cyrillic && pnpm check:no-internal-refs",
58
+ "check:tarball": "node scripts/check-tarball.mjs",
59
+ "prepublish:check": "node scripts/prepublish-check.mjs"
60
+ },
61
+ "dependencies": {
62
+ "@fastify/static": "7.0.4",
63
+ "@nestjs/common": "^10.4.0",
64
+ "@nestjs/core": "^10.4.0",
65
+ "@nestjs/platform-fastify": "^10.4.0",
66
+ "@nestjs/platform-ws": "^10.4.0",
67
+ "@nestjs/websockets": "^10.4.0",
68
+ "@unotest/protocol": "^0.5.0",
69
+ "chokidar": "^4.0.0",
70
+ "nestjs-zod": "^4.0.0",
71
+ "node-pty": "^1.1.0",
72
+ "reflect-metadata": "^0.2.0",
73
+ "rxjs": "^7.8.0",
74
+ "yaml": "^2.6.0",
75
+ "zod": "^3.23.0"
76
+ },
77
+ "peerDependencies": {
78
+ "@unotest/dsl": "^0.5.0",
79
+ "@unotest/web": "^0.5.0"
80
+ },
81
+ "peerDependenciesMeta": {
82
+ "@unotest/dsl": {
83
+ "optional": false
84
+ },
85
+ "@unotest/web": {
86
+ "optional": false
87
+ }
88
+ },
89
+ "devDependencies": {
90
+ "@codemirror/lang-javascript": "^6.2.5",
91
+ "@nestjs/testing": "^10.4.0",
92
+ "@swc/core": "^1.10.0",
93
+ "@tailwindcss/vite": "^4.3.0",
94
+ "@testing-library/react": "^16.0.0",
95
+ "@types/jest": "^29.5.0",
96
+ "@types/node": "^22.10.0",
97
+ "@types/react": "^18.3.0",
98
+ "@types/react-dom": "^18.3.0",
99
+ "@types/supertest": "^6.0.0",
100
+ "@types/ws": "^8.18.1",
101
+ "@uiw/react-codemirror": "^4.23.0",
102
+ "@unotest/dsl": "link:../unotest-dsl",
103
+ "@unotest/web": "link:../unotest-web",
104
+ "@vitejs/plugin-react": "^4.3.0",
105
+ "@xterm/addon-fit": "^0.11.0",
106
+ "@xterm/xterm": "^6.0.0",
107
+ "javascript-obfuscator": "^4.1.1",
108
+ "jest": "^29.7.0",
109
+ "jsdom": "^25.0.0",
110
+ "mobx": "^6.13.0",
111
+ "mobx-react-lite": "^4.0.7",
112
+ "playwright": "^1.49.0",
113
+ "react": "^18.3.1",
114
+ "react-dom": "^18.3.1",
115
+ "supertest": "^7.0.0",
116
+ "tailwindcss": "^4.3.0",
117
+ "ts-jest": "^29.2.0",
118
+ "tsup": "^8.5.1",
119
+ "tsx": "^4.19.2",
120
+ "typescript": "^5.7.2",
121
+ "vite": "^5.4.0",
122
+ "vitest": "^2.1.0",
123
+ "ws": "^8.21.0"
124
+ },
125
+ "pnpm": {
126
+ "onlyBuiltDependencies": [
127
+ "node-pty"
128
+ ]
129
+ }
130
+ }