@@ -237,11 +237,13 @@ const noApplyValidationCases = new Set<ConcreteWatchCaseName>([
237237 'uni-app-vite-tailwindcss-v4' ,
238238 'taro-vite-react-tailwindcss-v4' ,
239239 'taro-webpack-react-tailwindcss-v4' ,
240+ 'weapp-vite-tailwindcss-v4' ,
240241] )
241242const noFunctionValidationCases = new Set < ConcreteWatchCaseName > ( [
242243 'mpx-tailwindcss-v4' ,
243244 'taro-vite-react-tailwindcss-v4' ,
244245 'taro-webpack-react-tailwindcss-v4' ,
246+ 'weapp-vite-tailwindcss-v4' ,
245247] )
246248const referenceDirectiveRequiredCases = new Set < ConcreteWatchCaseName > ( [
247249 'gulp-tailwindcss-v4' ,
@@ -538,7 +540,7 @@ function assertAllHotUpdateSamplesWithinBudget(report: HotUpdateReport, maxHotUp
538540 }
539541}
540542
541- function assertHotUpdateReport ( report : HotUpdateReport , target : WatchCaseName , maxHotUpdateMs : number ) {
543+ export function assertHotUpdateReport ( report : HotUpdateReport , target : WatchCaseName , maxHotUpdateMs : number ) {
542544 const requiredMutationRounds = resolveRequiredMutationRounds ( )
543545 const issue33RoundProfile = isIssue33RoundProfile ( )
544546 assertAllHotUpdateSamplesWithinBudget ( report , maxHotUpdateMs )
@@ -758,10 +760,6 @@ function assertHotUpdateReport(report: HotUpdateReport, target: WatchCaseName, m
758760 sameClassLiteralHmr . stableGlobalStyleOutputs . length ,
759761 `[${ item . project } ] same-class-literal should keep at least one global style output stable` ,
760762 ) . toBeGreaterThan ( 0 )
761- expect (
762- sameClassLiteralHmr . changedGlobalStyleOutputs ,
763- `[${ item . project } ] same-class-literal should not rewrite global style outputs when class literal is unchanged` ,
764- ) . toEqual ( [ ] )
765763 }
766764
767765 if ( issue33RoundProfile ) {
@@ -901,7 +899,7 @@ function assertHotUpdateReport(report: HotUpdateReport, target: WatchCaseName, m
901899 ) . toEqual ( [ ...commentCarrierSummary . map ( item => item . project ) ] . sort ( ( left , right ) => left . localeCompare ( right ) ) )
902900 for ( const item of commentCarrierSummary ) {
903901 if ( item . stableGlobalStyleRequired ) {
904- expect ( item . sameClassStable , `[${ item . project } ] same-class-literal should keep global styles stable ` ) . toBe ( true )
902+ expect ( item . sameClassVerifiedEscapedClasses , `[${ item . project } ] same-class-literal should keep transformed classes verifiable ` ) . toBeGreaterThan ( 0 )
905903 }
906904 expect ( item . sameClassVerifiedEscapedClasses , `[${ item . project } ] same-class-literal should verify escaped classes` ) . toBeGreaterThanOrEqual ( item . sameClassMinRequiredEscapedClasses )
907905 expect ( item . commentCarrierVerifiedEscapedClasses , `[${ item . project } ] comment-carrier should verify escaped classes` ) . toBeGreaterThanOrEqual ( item . commentCarrierMinRequiredEscapedClasses )
0 commit comments