Skip to content

Commit 4af9545

Browse files
committed
test: use XDG_CONFIG_HOME to override userdir
1 parent cb0f562 commit 4af9545

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/index.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { describe, test, expect } from 'vitest'
22
import { write, read, readUser, parse, update, updateUser, writeUser } from '../src'
33

4-
// jest.mock('os', () => ({
5-
// homedir: () => __dirname
6-
// }))
4+
process.env.XDG_CONFIG_HOME = __dirname
75

86
const config = {
97
db: {

0 commit comments

Comments
 (0)