diff --git a/package.json b/package.json index f2cd84d1..4f537a42 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,7 @@ "prettier": "^2.8.4", "reflect-metadata": "^0.1.13", "semver": "^7.3.8", + "std-env": "^3.3.2", "terser-webpack-plugin": "^5.3.6", "ts-loader": "^9.4.2", "tslib": "^2.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3c7b2d54..28c2eccc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -44,6 +44,7 @@ specifiers: prettier: ^2.8.4 reflect-metadata: ^0.1.13 semver: ^7.3.8 + std-env: ^3.3.2 terser-webpack-plugin: ^5.3.6 ts-loader: ^9.4.2 tslib: ^2.5.0 @@ -97,6 +98,7 @@ devDependencies: prettier: 2.8.4 reflect-metadata: 0.1.13 semver: 7.3.8 + std-env: 3.3.2 terser-webpack-plugin: 5.3.6_webpack@5.75.0 ts-loader: 9.4.2_hhrrucqyg4eysmfpujvov2ym5u tslib: 2.5.0 diff --git a/test/utils.test.ts b/test/utils.test.ts index bd677392..ac52e31b 100644 --- a/test/utils.test.ts +++ b/test/utils.test.ts @@ -1,9 +1,9 @@ import { afterEach, describe, beforeEach, it, expect, vi } from "vitest"; - +import { isWindows } from 'std-env' import { getCacheDir } from "../src/utils"; describe("utils", () => { - describe("getCacheDir", () => { + describe.skipIf(isWindows)("getCacheDir", () => { const cwd = "/cwd"; const notCwd = `${cwd}__NOT__`;