File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
packages/@tailwindcss-upgrade/src/codemods/template Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,22 @@ import * as versions from '../../utils/version'
44import { migrateCandidate } from './migrate'
55vi . spyOn ( versions , 'isMajor' ) . mockReturnValue ( true )
66
7+ const css = String . raw
8+
79describe ( 'is-safe-migration' , async ( ) => {
8- let designSystem = await __unstable__loadDesignSystem ( '@import "tailwindcss";' , {
9- base : __dirname ,
10- } )
10+ let designSystem = await __unstable__loadDesignSystem (
11+ css `
12+ @import 'tailwindcss' ;
13+
14+ /* TODO(perf): Only here to speed up the tests */
15+ @theme {
16+ -- * : initial;
17+ --shadow : 0 1px 3px 0 rgb (0 0 0 / 0.1 ), 0 1px 2px -1px rgb (0 0 0 / 0.1 );
18+ --shadow-sm : 0 1px 3px 0 rgb (0 0 0 / 0.1 ), 0 1px 2px -1px rgb (0 0 0 / 0.1 );
19+ }
20+ ` ,
21+ { base : __dirname } ,
22+ )
1123
1224 test . each ( [
1325 [ `let notBorder = !border \n` , '!border' ] ,
You can’t perform that action at this time.
0 commit comments