Skip to content

Commit

Permalink
test: remove cwd check
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 5, 2024
1 parent 2942822 commit 9ba07d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/workspaces/space_1/test/env-injected.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ test('cwd is resolved correctly', () => {

expect(process.env.ROOT_CWD_CONFIG).toBe(rootPath)
expect(process.env.ROOT_CWD_SERVER).toBe(rootPath)
expect(process.env.SPACE_2_CWD_CONFIG).toBe(spaceRoot)
expect(process.env.SPACE_2_CWD_SERVER).toBe(spaceRoot)

// ideally, it should be a `spaceRoot`, but support was reverted
// in https://github.com/vitest-dev/vitest/pull/6811
expect(process.env.SPACE_2_CWD_CONFIG).toBe(rootPath)
expect(process.env.SPACE_2_CWD_SERVER).toBe(rootPath)
})

0 comments on commit 9ba07d2

Please sign in to comment.