We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59f66b6 commit 9fabb4fCopy full SHA for 9fabb4f
1 file changed
integration-tests/utils/helpers.ts
@@ -204,16 +204,12 @@ const isNativeAuthAccessTokenCached = ():boolean => {
204
205
const getTokenPathByOS = () => {
206
switch (os.type()) {
207
- case 'Darwin': {
208
- return "~/Library/Caches/itp/token.json"
209
- }
210
-
211
case 'Linux': {
212
const configDir = `${os.homedir()}/.cache/itp`
213
expect(fs.existsSync(configDir),"Cache dir exists").to.be.true;
214
return `${configDir}/token.json`
215
}
216
+
217
case 'Windows_NT': {
218
return `${process.env.LOCALAPPDATA}/itp/token.json`
219
0 commit comments