Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ function canCreateFileSymlink(): boolean {
}
}

const fileSymlinkIt = it.skipIf(!canCreateFileSymlink());

describe("VERSION", () => {
it("matches the published package.json version", () => {
const pkgPath = join(process.cwd(), "package.json");
Expand Down Expand Up @@ -106,8 +108,6 @@ describe("isNpxInstall", () => {
});

describe("detectInstallSource", () => {
const fileSymlinkIt = it.skipIf(!canCreateFileSymlink());

it("identifies npm via lib/node_modules/@carboncode/cli", () => {
expect(
detectInstallSource("/usr/local/lib/node_modules/@carboncode/cli/dist/cli/index.js"),
Expand Down Expand Up @@ -228,7 +228,7 @@ describe("detectNpmInstallPrefix", () => {
).toBe("C:/Users/me/AppData/Roaming/npm");
});

it("resolves a bin symlink before extracting the npm prefix", () => {
fileSymlinkIt("resolves a bin symlink before extracting the npm prefix", () => {
const dir = mkdtempSync(join(tmpdir(), "cc-prefix-"));
try {
const target = join(
Expand Down
Loading