Skip to content

Commit 5f53e47

Browse files
authored
Merge pull request #2457 from AdWerx/check_yarn_test
Add test for check_node, check_yarn tasks
2 parents bbf62d0 + 2e6e136 commit 5f53e47

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/rake_tasks_test.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ def test_rake_webpacker_yarn_install_in_production_environment
5252
"Expected only production dependencies to be installed"
5353
end
5454

55+
def test_check_node_version
56+
output = Dir.chdir(test_app_path) { `rake webpacker:check_node 2>&1` }
57+
assert_empty output
58+
end
59+
60+
def test_check_yarn_version
61+
output = Dir.chdir(test_app_path) { `rake webpacker:check_yarn 2>&1` }
62+
assert_empty output
63+
end
64+
5565
private
5666
def test_app_path
5767
File.expand_path("test_app", __dir__)

0 commit comments

Comments
 (0)