How to test(Rspec capybara + selenium) with docker selenium container #304
Unanswered
y-hikaru-walabo
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi there! The error message is accurate:
Vite Ruby is trying to auto-build assets for tests, but Node is not available in the container, so it can't precompile assets. During development, if you want tests to get assets from the Vite dev server, check this section in the docs. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My application five containers are running.
The steps I will now test are as follows
RAILS_ENV=test bin/vite build
bundle exec rspec
It is time consuming to build every time I do a test.
Running the test without building will result in an error.
The settings are as follows
vite.json
docker-compose.yml
Let me know if you know how to test it without doing a build.
vite-plugin-ruby 3.1.2
vite 3.2.2
Ruby 3.0.3
Rails 7.0.4
Beta Was this translation helpful? Give feedback.
All reactions