Skip to content

Commit

Permalink
Update monorepo config in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rguruprakash authored Feb 26, 2024
1 parent 959d45b commit 50de5c6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ If you have a monorepo setup, you might have to do a little more configuration,
you have different jest configurations per package.

```lua
jestConfigFile = function()
local file = vim.fn.expand('%:p')
jestConfigFile = function(file)
if string.find(file, "/packages/") then
return string.match(file, "(.-/[^/]+/)src") .. "jest.config.ts"
end
Expand All @@ -114,8 +113,7 @@ directory (like when you have a lerna setup for example), you might also have to
bit:

```lua
cwd = function()
local file = vim.fn.expand('%:p')
cwd = function(file)
if string.find(file, "/packages/") then
return string.match(file, "(.-/[^/]+/)src")
end
Expand Down

0 comments on commit 50de5c6

Please sign in to comment.