Skip to content

Commit 37d5093

Browse files
committed
test: update the integration install test to use static variable
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.
1 parent 2bd245f commit 37d5093

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: test/integration/user_install_test.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ set -eux
77

88
# set up dependencies
99
rm -f Gemfile.lock
10-
bundle remove actionmailer
10+
bundle remove actionmailer || true
11+
bundle remove rails || true
1112
bundle add rails --skip-install ${RAILSOPTS:-}
1213
bundle install --prefer-local
1314

@@ -47,7 +48,7 @@ end
4748
EOF
4849

4950
cat >> app/assets/tailwind/application.css <<EOF
50-
@theme { --color-special: #abc12399; }
51+
@theme static { --color-special: #abc12399; }
5152
EOF
5253

5354
bin/rails tailwindcss:build still_here | grep "Rake process did not exit early"

Diff for: test/integration/user_upgrade_test.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ set -eux
77

88
# set up dependencies
99
rm -f Gemfile.lock
10-
bundle remove actionmailer
10+
bundle remove actionmailer || true
11+
bundle remove rails || true
1112
bundle add rails --skip-install ${RAILSOPTS:-}
1213
bundle install --prefer-local
1314

0 commit comments

Comments
 (0)