|
Ran
|
Jobs
1
|
Files
68
|
Run time
1min
|
Badge
README BADGES
|
push
github
chore: move to esm (#4403) This pull request introduces several significant updates across the codebase, primarily focused on modernizing the Node.js environment, allow code sharing between backend and UI, improving TypeScript usage, and enhancing import consistency. The most notable changes include upgrading to Node.js 22, transitioning all imports to use explicit `.ts` extensions and more precise type-only imports, and updating workflow and configuration files to align with these changes. **Node.js and Tooling Upgrades:** * Upgraded Node.js version from 20 to 22 in both the GitHub Actions workflow (`.github/workflows/test-application.yml`) and `.nvmrc`, ensuring the project uses the latest LTS features and performance improvements. [[1]](diffhunk://#diff-<a class=hub.com/zwave-js/zwave-js-ui/commit/<a class="double-link" href="https://git"><a class=hub.com/zwave-js/zwave-js-ui/commit/9261914205164383e5e6930bef1909548ba0acc9">926191420<a href="https://github.com/zwave-js/zwave-js-ui/commit/deddc1b855f67417b40d48b36c5f2da675d2db37">cd1a241217e88b8dbb730894L21-R21) [[2]](diffhunk://#diff-<a class="double-link" href="https://github.com/zwave-js/zwave-js-ui/commit/2c8effdf840690ccb88c7e21e56148978c6adb2c">2c8effdf8</a>6926530c58ff0e47a9588b44L1-R1) * Updated the workflow to build the backend before starting it, and adjusted process checks and log outputs to match the new start command. [[1]](diffhunk://#diff-9261914205164383e5e6930bef1909548ba0acc9cd1a241217e88b8dbb730894L84-R85) [[2]](diffhunk://#diff-9261914205164383e5e6930bef1909548ba0acc9cd1a241217e88b8dbb730894R95-R108) **TypeScript and Import Improvements:** * Converted all internal imports to use explicit `.ts` extensions and transitioned to type-only imports where appropriate, improving type safety and compatibility with ES module standards. This affects nearly all files in the `api/` directory, including `app.ts`, `config/store.ts`, `lib/Gateway.ts`, and others. [[1]](diffhunk://#diff-<a class=hub.com/zwave-js/zwave-js-ui/commit/fe6a6140f19ab1b0dd1e7eac27de4a8366de9b7c">fe6a6140f0da27d292f99ba219e5a3e97L1-R31) [[2]](diffhunk://#diff-fe6a6140f19ab1b0dd1e7eac27de4a8366de9b7c0da27d292f99ba219e5a3e97L35-R53) [[3]](diffhunk://#diff-2abb3e2a5e97c5c148d9947d3ea9fef1fL3-R7) [[4]](diffhunk://#diff-3e2f08e1ce37099590645... (continued)
333 of 441 branches covered (75.51%)
Branch coverage included in aggregate %.
112 of 386 new or added lines in 25 files covered. (29.02%)
1 existing line in 1 file now uncovered.4033 of 20865 relevant lines covered (19.33%)
1.21 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
0.0 |
0.0% | .prettierrc.js |
| 1 |
0.0 |
0.0% | vite.config.mjs |
| 3 |
0.0 |
0.0% | server_config.js |
| 4 |
0.0 |
0.0% | api/bin/www.ts |
| 4 |
0.0 |
0.0% | api/lib/CustomPlugin.ts |
| 4 |
70.76 |
3.02% | api/lib/jsonStore.ts |
| 5 |
0.0 |
0.0% | api/config/store.ts |
| 5 |
0.0 |
0.0% | api/lib/PkgFsBindings.ts |
| 6 |
0.0 |
0.0% | api/lib/SocketManager.ts |
| 7 |
0.0 |
0.0% | api/lib/BackupManager.ts |
| 14 |
0.0 |
0.0% | api/lib/ZnifferManager.ts |
| 14 |
0.0 |
generateDocs.ts | |
| 25 |
44.69 |
1.51% | api/lib/utils.ts |
| 25 |
0.0 |
0.0% | esbuild.js |
| 40 |
0.0 |
0.0% | eslint.config.js |
| 54 |
0.0 |
0.0% | api/app.ts |
| 62 |
0.0 |
0.0% | api/lib/ZwaveClient.ts |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
89.1 |
-0.17% | api/lib/logger.ts |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 18497891207.1 | 68 |
20.49 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|