Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Run yarn build as part of template test (#173)
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Waite <[email protected]>
  • Loading branch information
andyw8 and andyw8 committed Nov 7, 2023
1 parent 7bd143d commit 80980bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/template_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ def teardown
end

def test_generator_succeeds
output, err = capture_subprocess_io do
output, _err = capture_subprocess_io do
system("DISABLE_SPRING=1 SKIP_GIT=1 rails new test_app -m template.rb")
end
assert_includes output, "Jumpstart app successfully created!"

output, _err = capture_subprocess_io do
system("cd test_app && yarn build")
end
assert_includes output, "Done in "
end

# TODO: Fix these tests on CI so they don't fail on db:create
Expand Down

0 comments on commit 80980bc

Please sign in to comment.