jason.woltje
0e7e203db8
test(row 333): harden the business-imports helper and test it on small trees (Vikunja #779 )
...
The helper read imports with a regex that treated a commented import as live, missed
`import (` written with a space, skipped a missing target inside packages/business/src
before checking it existed, and resolved targets lexically. It now blanks comments
(and ignores import forms inside strings and regular expressions) before matching,
counts a spaced or line-broken dynamic import, throws on a dynamic import whose
argument is not a plain string and on a file with an unterminated string, comment,
template or regular expression, checks every target exists and is a regular file
before the inside-own-directory skip, and refuses a target whose real path is outside
the real repository root. The output for the real tree is unchanged.
business-imports.test.mjs builds small trees under a private temp directory.
2026-11-02 20:14:25 -06:00
..
2026-11-02 13:10:29 -06:00
2026-10-23 12:25:40 -05:00
2026-10-23 05:06:14 -05:00
2026-10-12 18:36:52 -05:00
2026-10-15 17:20:09 -05:00
2026-11-02 20:14:25 -06:00
2026-11-02 20:14:25 -06:00
2026-10-23 03:03:09 -05:00
2026-10-23 16:37:24 -05:00
2026-10-26 17:39:34 -05:00
2026-10-21 07:22:07 -05:00
2026-11-02 13:10:29 -06:00
2026-10-23 03:03:09 -05:00
2026-10-22 16:59:44 -05:00
2026-10-18 14:24:42 -05:00
2026-10-19 16:11:36 -05:00
2026-10-18 14:24:42 -05:00
2026-10-13 07:58:36 -05:00
2026-11-02 15:22:17 -06:00
2026-10-23 12:25:39 -05:00
2026-10-20 21:47:11 -05:00
2026-11-02 15:46:57 -06:00
2026-10-13 07:58:36 -05:00
2026-10-22 06:01:08 -05:00
2026-10-21 16:44:37 -05:00
2026-11-02 18:25:27 -06:00
2026-10-29 00:33:01 -05:00
2026-10-29 00:33:01 -05:00
2026-10-21 13:28:40 -05:00
2026-10-21 13:28:40 -05:00
2026-10-22 22:55:25 -05:00
2026-10-23 17:40:20 -05:00
2026-10-22 03:42:05 -05:00
2026-11-02 15:22:17 -06:00
2026-10-21 22:42:12 -05:00
2026-10-21 05:42:52 -05:00
2026-11-02 15:22:17 -06:00
2026-10-23 17:00:42 -05:00
2026-11-02 15:22:17 -06:00
2026-11-02 17:54:07 -06:00
2026-11-02 15:22:17 -06:00
2026-11-02 15:22:17 -06:00
2026-11-02 15:22:17 -06:00
2026-11-02 15:22:17 -06:00
2026-10-18 20:35:02 -05:00
2026-10-18 16:18:47 -05:00
2026-10-16 15:46:40 -05:00
2026-10-26 18:02:58 -05:00
2026-10-26 12:04:21 -05:00
2026-10-26 12:04:21 -05:00
2026-10-24 18:30:11 -05:00
2026-10-26 12:04:21 -05:00
2026-10-26 12:04:21 -05:00
2026-10-26 12:04:21 -05:00
2026-10-19 19:04:50 -05:00
2026-10-21 22:42:12 -05:00
2026-10-23 18:43:08 -05:00
2026-10-14 19:44:35 -05:00
2026-10-26 10:44:35 -05:00
2026-10-21 22:42:12 -05:00
2026-10-19 14:31:36 -05:00
2026-10-18 14:24:42 -05:00
2026-11-02 15:22:17 -06:00
2026-10-20 23:13:06 -05:00
2026-10-24 05:39:26 -05:00
2026-11-02 15:22:17 -06:00
2026-11-02 15:22:17 -06:00
2026-10-23 08:53:07 -05:00
2026-11-02 15:22:17 -06:00
2026-10-26 10:44:35 -05:00
2026-10-21 14:12:03 -05:00
2026-10-21 22:15:36 -05:00
2026-11-02 16:27:43 -06:00
2026-11-02 19:40:46 -06:00
2026-11-02 12:19:07 -06:00
2026-10-21 15:55:39 -05:00
2026-10-20 01:12:07 -05:00
2026-10-20 01:12:07 -05:00
2026-10-22 06:01:09 -05:00
2026-10-22 08:07:43 -05:00
2026-11-02 15:22:17 -06:00
2026-11-02 15:22:17 -06:00
2026-10-24 08:12:02 -05:00
2026-10-23 17:00:42 -05:00
2026-10-18 11:08:17 -05:00
2026-10-15 19:58:56 -05:00