Skip to content

Commit

Permalink
Merge pull request #239 from ghiculescu/patch-1
Browse files Browse the repository at this point in the history
Simplify "Building for testing" [merge after Rails 7.1]
  • Loading branch information
flavorjones committed Sep 26, 2023
2 parents 788f01f + adc00e1 commit f8ee6a5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,8 @@ The `tailwindcss:build` is automatically attached to `assets:precompile`, so bef

### Building for testing

The `tailwindcss:build` task is automatically attached to the `test:prepare` Rake task. The `test:prepare` task is run before some test tasks (e.g. `test:all` and `test:controllers`), but not before the bare `test` task.
The `tailwindcss:build` task is automatically attached to the `test:prepare` Rake task. This task runs before test commands. If you run `bin/rails test` in your CI environment, your Tailwind output will be generated before tests run.

If your tests need Tailwind assets in your CI environment, it's best to be explicit and run this command:

```
bin/rails test:prepare test
```

### Update assets automatically

Expand Down

0 comments on commit f8ee6a5

Please sign in to comment.