Skip to content

Commit

Permalink
test: update the integration install test to use static variable
Browse files Browse the repository at this point in the history
In tailwindcss v4.0.5, tailwindlabs/tailwindcss#16211 is smarter about
not including unused theme variables, but `static` is the documented
way to opt into the older behavior.
  • Loading branch information
flavorjones committed Feb 9, 2025
1 parent 2bd245f commit 37d5093
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions test/integration/user_install_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ set -eux

# set up dependencies
rm -f Gemfile.lock
bundle remove actionmailer
bundle remove actionmailer || true
bundle remove rails || true
bundle add rails --skip-install ${RAILSOPTS:-}
bundle install --prefer-local

Expand Down Expand Up @@ -47,7 +48,7 @@ end
EOF

cat >> app/assets/tailwind/application.css <<EOF
@theme { --color-special: #abc12399; }
@theme static { --color-special: #abc12399; }
EOF

bin/rails tailwindcss:build still_here | grep "Rake process did not exit early"
Expand Down
3 changes: 2 additions & 1 deletion test/integration/user_upgrade_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ set -eux

# set up dependencies
rm -f Gemfile.lock
bundle remove actionmailer
bundle remove actionmailer || true
bundle remove rails || true
bundle add rails --skip-install ${RAILSOPTS:-}
bundle install --prefer-local

Expand Down

0 comments on commit 37d5093

Please sign in to comment.