Skip to content

Commit

Permalink
test skip cache dir test on windows
Browse files Browse the repository at this point in the history
we might enabled back by either mocking tmpDir for windows or having a variant
  • Loading branch information
pi0 committed Mar 6, 2023
1 parent 1f43c26 commit 33f8316
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/utils.test.ts
Original file line number Diff line number Diff line change
@@ -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__`;

Expand Down

0 comments on commit 33f8316

Please sign in to comment.