@@ -200,10 +200,7 @@ mod tests {
200200 r#"import {Box} from '@devup-ui/core'
201201 <Box padding={1} ref={ref} data-test={1} role={2} children={[]} onClick={()=>{}} aria-valuenow={24} key={2} tabIndex={1} id="id" />
202202 "# ,
203- ExtractOption {
204- package: "@devup-ui/core" . to_string( ) ,
205- css_file: None
206- }
203+ ExtractOption { package: "@devup-ui/core" . to_string( ) , css_file: None }
207204 )
208205 . unwrap( )
209206 ) ) ;
@@ -2595,37 +2592,13 @@ e(o, { className: "a", bg: variable, style: { color: "blue" }, ...props })
25952592 #[ serial]
25962593 fn support_transpile_cjs ( ) {
25972594 reset_class_map ( ) ;
2598- assert_debug_snapshot ! ( ToBTreeSet :: from( extract(
2599- "test.cjs" ,
2600- r#""use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@devup-ui/react");function t(){return e.jsxs("div",{children:[e.jsx(r.Box,{_hover:{bg:"blue"},bg:"$text",color:"red",children:"hello"}),e.jsx(r.Text,{typography:"header",children:"typo"}),e.jsx(r.Flex,{as:"section",mt:2,children:"section"})]})}exports.Lib=t;"# ,
2601- ExtractOption {
2602- package: "@devup-ui/react" . to_string( ) ,
2603- css_file: None
2604- }
2605- )
2606- . unwrap( ) ) ) ;
2595+ assert_debug_snapshot ! ( ToBTreeSet :: from( extract( "test.cjs" , r#""use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@devup-ui/react");function t(){return e.jsxs("div",{children:[e.jsx(r.Box,{_hover:{bg:"blue"},bg:"$text",color:"red",children:"hello"}),e.jsx(r.Text,{typography:"header",children:"typo"}),e.jsx(r.Flex,{as:"section",mt:2,children:"section"})]})}exports.Lib=t;"# , ExtractOption { package: "@devup-ui/react" . to_string( ) , css_file: None } ) . unwrap( ) ) ) ;
26072596
26082597 reset_class_map ( ) ;
2609- assert_debug_snapshot ! ( ToBTreeSet :: from( extract(
2610- "test.cjs" ,
2611- r#""use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const {jsx:e1, jsxs:e2}=require("react/jsx-runtime"),r=require("@devup-ui/react");function t(){return e2("div",{children:[e1(r.Box,{_hover:{bg:"blue"},bg:"$text",color:"red",children:"hello"}),e1(r.Text,{typography:"header",children:"typo"}),e1(r.Flex,{as:"section",mt:2,children:"section"})]})}exports.Lib=t;"# ,
2612- ExtractOption {
2613- package: "@devup-ui/react" . to_string( ) ,
2614- css_file: None
2615- }
2616- )
2617- . unwrap( ) ) ) ;
2598+ assert_debug_snapshot ! ( ToBTreeSet :: from( extract( "test.cjs" , r#""use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const {jsx:e1, jsxs:e2}=require("react/jsx-runtime"),r=require("@devup-ui/react");function t(){return e2("div",{children:[e1(r.Box,{_hover:{bg:"blue"},bg:"$text",color:"red",children:"hello"}),e1(r.Text,{typography:"header",children:"typo"}),e1(r.Flex,{as:"section",mt:2,children:"section"})]})}exports.Lib=t;"# , ExtractOption { package: "@devup-ui/react" . to_string( ) , css_file: None } ) . unwrap( ) ) ) ;
26182599
26192600 reset_class_map ( ) ;
2620- assert_debug_snapshot ! ( ToBTreeSet :: from( extract(
2621- "test.js" ,
2622- r#""use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@devup-ui/react");function t(){return e.jsxs("div",{children:[e.jsx(r.Box,{_hover:{bg:"blue"},bg:"$text",color:"red",children:"hello"}),e.jsx(r.Text,{typography:"header",children:"typo"}),e.jsx(r.Flex,{as:"section",mt:2,children:"section"})]})}exports.Lib=t;"# ,
2623- ExtractOption {
2624- package: "@devup-ui/react" . to_string( ) ,
2625- css_file: None
2626- }
2627- )
2628- . unwrap( ) ) ) ;
2601+ assert_debug_snapshot ! ( ToBTreeSet :: from( extract( "test.js" , r#""use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@devup-ui/react");function t(){return e.jsxs("div",{children:[e.jsx(r.Box,{_hover:{bg:"blue"},bg:"$text",color:"red",children:"hello"}),e.jsx(r.Text,{typography:"header",children:"typo"}),e.jsx(r.Flex,{as:"section",mt:2,children:"section"})]})}exports.Lib=t;"# , ExtractOption { package: "@devup-ui/react" . to_string( ) , css_file: None } ) . unwrap( ) ) ) ;
26292602 }
26302603
26312604 #[ test]
@@ -2638,10 +2611,7 @@ e(o, { className: "a", bg: variable, style: { color: "blue" }, ...props })
26382611 r#"import {Flex} from '@devup-ui/core'
26392612 <Flex opacity={1} zIndex={2} fontWeight={900} scale={2} flex={1} lineHeight={1} tabSize={4} MozTabSize={4} />
26402613 "# ,
2641- ExtractOption {
2642- package: "@devup-ui/core" . to_string( ) ,
2643- css_file: None
2644- }
2614+ ExtractOption { package: "@devup-ui/core" . to_string( ) , css_file: None }
26452615 )
26462616 . unwrap( )
26472617 ) ) ;
0 commit comments