@@ -125,38 +125,3 @@ it('updates layers when any CSS containing @tailwind directives changes', async
125
125
}
126
126
` )
127
127
} )
128
-
129
- it ( 'invalidates the context when any CSS containing @tailwind directives changes' , async ( ) => {
130
- sharedState . contextInvalidationCount = 0
131
- sharedState . sourceHashMap . clear ( )
132
-
133
- // Save the file a handful of times with no changes
134
- // This builds the context at most once
135
- for ( let n = 0 ; n < 5 ; n ++ ) {
136
- await run ( `@tailwind utilities;` , configPath , `id=1` )
137
- }
138
-
139
- expect ( sharedState . contextInvalidationCount ) . toBe ( 1 )
140
-
141
- // Save the file twice with a change
142
- // This should rebuild the context again but only once
143
- await run ( `@tailwind utilities; .foo {}` , configPath , `id=1` )
144
- await run ( `@tailwind utilities; .foo {}` , configPath , `id=1` )
145
-
146
- expect ( sharedState . contextInvalidationCount ) . toBe ( 2 )
147
-
148
- // Save the file twice with a content but not length change
149
- // This should rebuild the context two more times
150
- await run ( `@tailwind utilities; .bar {}` , configPath , `id=1` )
151
- await run ( `@tailwind utilities; .baz {}` , configPath , `id=1` )
152
-
153
- expect ( sharedState . contextInvalidationCount ) . toBe ( 4 )
154
-
155
- // Save a file with a change that does not affect the context
156
- // No invalidation should occur
157
- await run ( `.foo { @apply mb-1; }` , configPath , `id=2` )
158
- await run ( `.foo { @apply mb-1; }` , configPath , `id=2` )
159
- await run ( `.foo { @apply mb-1; }` , configPath , `id=2` )
160
-
161
- expect ( sharedState . contextInvalidationCount ) . toBe ( 4 )
162
- } )
0 commit comments