Commit 12d24f3
committed
refactor(tests): convert lazy require calls to static ES6 imports
- Convert json.test.ts: hoist fs/os/path imports and safeDelete/getEditableJsonClass to top-level
- Convert strings.test.ts: remove redundant require calls (already imported)
- Convert dlx/package.test.ts: add readFileSync to imports, remove inline requires
- Improves consistency with ES6 module patterns
- Better for tree-shaking and static analysis1 parent ae87882 commit 12d24f3
3 files changed
+11
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
| 570 | + | |
574 | 571 | | |
575 | 572 | | |
576 | 573 | | |
| |||
602 | 599 | | |
603 | 600 | | |
604 | 601 | | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | | - | |
| 602 | + | |
609 | 603 | | |
610 | 604 | | |
611 | 605 | | |
| |||
658 | 652 | | |
659 | 653 | | |
660 | 654 | | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
| 655 | + | |
665 | 656 | | |
666 | 657 | | |
667 | 658 | | |
| |||
706 | 697 | | |
707 | 698 | | |
708 | 699 | | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
| 700 | + | |
713 | 701 | | |
714 | 702 | | |
715 | 703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| |||
752 | 758 | | |
753 | 759 | | |
754 | 760 | | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | 761 | | |
764 | 762 | | |
765 | 763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
452 | 451 | | |
453 | 452 | | |
454 | 453 | | |
455 | 454 | | |
456 | | - | |
457 | 455 | | |
458 | 456 | | |
459 | 457 | | |
| |||
0 commit comments