@@ -20,16 +20,21 @@ test("docs and CI point at the unified package layout", () => {
2020 assert . match ( docsIndex , / R e S c r i p t W e b A P I / ) ;
2121 assert . match ( docsIndex , / W e b A P I \. G l o b a l / ) ;
2222 assert . match ( docsIndex , / l o c a t i o n - > W e b A P I \. L o c a t i o n \. r e l o a d / ) ;
23- assert . match ( docsPhilosophy , / o p e n W e b A P I \. D o m G l o b a l / ) ;
23+ assert . match ( docsPhilosophy , / o p e n W e b A P I \. D O M / ) ;
24+ assert . doesNotMatch ( docsPhilosophy , / W e b A P I \. D o m G l o b a l / ) ;
2425 assert . match ( docsPhilosophy , / l e t m y E l e m e n t : W e b A P I \. E l e m e n t \. t = d o c u m e n t - > W e b A P I \. D o c u m e n t \. c r e a t e E l e m e n t / ) ;
2526 assert . match ( docsPhilosophy , / l e t n o d e : W e b A P I \. N o d e \. t = e l e m e n t - > W e b A P I \. E l e m e n t \. a s N o d e / ) ;
2627 assert . match ( docsContributing , / o p e n W e b A P I / ) ;
2728 assert . doesNotMatch ( docsContributing , / o p e n W e b A P I \. D O M / ) ;
2829 assert . match ( designSpec , / o r i g i n a l f l a t p u b l i c A P I m o d u l e s h a p e / ) ;
2930 assert . match ( designSpec , / U s e ` W e b A P I \. \* ` s p e l l i n g , n o t ` W e b A p i \. \* ` \. / ) ;
30- assert . match ( docsLlm , / \. \. \/ s r c \/ \* \/ \* \* \/ \* \. r e s / ) ;
31- assert . match ( docsLlm , / W e b A P I \. \$ \{ l e a f N a m e \} / ) ;
31+ assert . match ( docsLlm , / r e s c r i p t \. j s o n / ) ;
32+ assert . match ( docsLlm , / s o u r c e \. p u b l i c / ) ;
33+ assert . match ( docsLlm , / i s P u b l i c F i l e \( f i l e P a t h \) / ) ;
3234 assert . match ( docsUtils , / p a t h \. r e s o l v e \( p r o c e s s \. c w d \( \) , " s r c " \) / ) ;
35+ assert . match ( docsUtils , / r e s c r i p t \. j s o n / ) ;
36+ assert . match ( docsUtils , / s o u r c e \. p u b l i c / ) ;
37+ assert . match ( docsUtils , / p u b l i c M o d u l e s \. h a s / ) ;
3338 assert . doesNotMatch ( docsUtils , / p a t h \. r e s o l v e \( p r o c e s s \. c w d \( \) , " p a c k a g e s " \) / ) ;
3439 assert . match ( workflow , / n p m p a c k \b / ) ;
3540 assert . match ( workflow , / n p m p u b l i s h - - a c c e s s p u b l i c - - t a g e x p e r i m e n t a l / ) ;
@@ -50,4 +55,8 @@ test("root rescript.json keeps generated type modules internal", () => {
5055 `${ source . dir } should not expose *Types modules` ,
5156 ) ;
5257 }
58+
59+ const domSource = sourceEntries . find ( ( source ) => source . dir === "src/DOM" ) ;
60+ assert . ok ( domSource , "src/DOM source entry should exist" ) ;
61+ assert . ok ( ! domSource . public . includes ( "DomGlobal" ) , "src/DOM should keep DomGlobal internal" ) ;
5362} ) ;
0 commit comments