Skip to content

Commit

Permalink
🐛fix(tests) packagejs tests renamed to nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeioth committed Nov 18, 2023
1 parent 1abf1a6 commit bb49f2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tests/bau/nodejs.lua
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
--- This test file run all supported cases of use.
--- @usage :luafile ~/.local/share/nvim/lazy/compiler.nvim/tests/tests/bau/packagejs.lua
--- @usage :luafile ~/.local/share/nvim/lazy/compiler.nvim/tests/tests/bau/nodejs.lua

local bau = require("compiler.bau.packagejson")
local bau = require("compiler.bau.nodejs")

-- Run nodejs javascript project
local example = vim.fn.stdpath "data" .. "/lazy/compiler.nvim/tests/examples/bau/packagejson/javascript-app"
local example = vim.fn.stdpath "data" .. "/lazy/compiler.nvim/tests/examples/bau/nodejs/javascript-app"
vim.api.nvim_set_current_dir(example)
bau.action("npm install")
vim.wait(10000) -- wait time
bau.action("npm start")
vim.wait(1000) -- wait time

-- Run nodejs typescript project
local example = vim.fn.stdpath "data" .. "/lazy/compiler.nvim/tests/examples/bau/packagejson/typescript-app"
local example = vim.fn.stdpath "data" .. "/lazy/compiler.nvim/tests/examples/bau/nodejs/typescript-app"
vim.api.nvim_set_current_dir(example)
bau.action("npm install")
vim.wait(10000) -- wait time
Expand Down

0 comments on commit bb49f2d

Please sign in to comment.