@@ -441,46 +441,6 @@ describe('Init command', () => {
441
441
// multiple keys in `theme` exists. However it loads `tailwindcss/colors`
442
442
// which doesn't exists in this context.
443
443
expect ( ( await readOutputFile ( '../full.config.js' ) ) . split ( '\n' ) . length ) . toBeGreaterThan ( 50 )
444
-
445
- expect ( await readOutputFile ( '../full.config.js' ) ) . not . toContain (
446
- `/** @type {import('tailwindcss/types').Config} */`
447
- )
448
- } )
449
-
450
- test ( '--types' , async ( ) => {
451
- cleanupFile ( 'simple.config.js' )
452
-
453
- let { combined } = await $ ( `${ EXECUTABLE } init simple.config.js --types` )
454
-
455
- expect ( combined ) . toMatchInlineSnapshot ( `
456
- "
457
- Created Tailwind CSS config file: simple.config.js
458
- "
459
- ` )
460
-
461
- expect ( await readOutputFile ( '../simple.config.js' ) ) . toContain (
462
- `/** @type {import('tailwindcss/types').Config} */`
463
- )
464
- } )
465
-
466
- test ( '--full --types' , async ( ) => {
467
- cleanupFile ( 'full.config.js' )
468
-
469
- let { combined } = await $ ( `${ EXECUTABLE } init full.config.js --full --types` )
470
-
471
- expect ( combined ) . toMatchInlineSnapshot ( `
472
- "
473
- Created Tailwind CSS config file: full.config.js
474
- "
475
- ` )
476
-
477
- // Not a clean way to test this. We could require the file and verify that
478
- // multiple keys in `theme` exists. However it loads `tailwindcss/colors`
479
- // which doesn't exists in this context.
480
- expect ( ( await readOutputFile ( '../full.config.js' ) ) . split ( '\n' ) . length ) . toBeGreaterThan ( 50 )
481
- expect ( await readOutputFile ( '../full.config.js' ) ) . toContain (
482
- `/** @type {import('tailwindcss/types').Config} */`
483
- )
484
444
} )
485
445
486
446
test ( '--postcss' , async ( ) => {
@@ -513,7 +473,6 @@ describe('Init command', () => {
513
473
Options:
514
474
-f, --full Initialize a full \`tailwind.config.js\` file
515
475
-p, --postcss Initialize a \`postcss.config.js\` file
516
- --types Add TypeScript types for the \`tailwind.config.js\` file
517
476
-h, --help Display usage information
518
477
` )
519
478
)
@@ -542,7 +501,6 @@ describe('Init command', () => {
542
501
Options:
543
502
-f, --full Initialize a full \`tailwind.config.cjs\` file
544
503
-p, --postcss Initialize a \`postcss.config.cjs\` file
545
- --types Add TypeScript types for the \`tailwind.config.cjs\` file
546
504
-h, --help Display usage information
547
505
` )
548
506
)
@@ -576,10 +534,6 @@ describe('Init command', () => {
576
534
// Not a clean way to test this.
577
535
expect ( await readOutputFile ( '../tailwind.config.cjs' ) ) . toContain ( 'module.exports =' )
578
536
579
- expect ( await readOutputFile ( '../tailwind.config.cjs' ) ) . not . toContain (
580
- `/** @type {import('tailwindcss/types').Config} */`
581
- )
582
-
583
537
await writeInputFile ( '../package.json' , pkg )
584
538
} )
585
539
} )
0 commit comments