Skip to content

Commit

Permalink
chore: use mkdir_p
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed Jul 2, 2022
1 parent 46c6c91 commit 3e26be4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/engine_rake_tasks_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'test_helper'
require 'fileutils'

class EngineRakeTasksTest < ViteRuby::Test
def setup
Expand Down Expand Up @@ -87,7 +88,7 @@ def test_cli_commands
assert ViteRuby::CLI::Build.new.call(mode: ViteRuby.mode, ssr: true)
}

app_ssr_dir.mkdir
FileUtils.mkdir_p(app_ssr_dir.to_s)
ssr_path = app_ssr_dir.join('ssr.mjs')
ssr_path.write('')
stub_kernel_exec('node', ssr_path.to_s) {
Expand Down

0 comments on commit 3e26be4

Please sign in to comment.