Skip to content

Commit

Permalink
chore: correct vi mock location for blockTSup
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Jan 16, 2025
1 parent 9780e36 commit 4f45825
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/next/blocks/blockTSup.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import { testBlock } from "create-testers";
import { describe, expect, test } from "vitest";
import { describe, expect, test, vi } from "vitest";

import { blockTSup } from "./blockTSup.js";
import { optionsBase } from "./options.fakes.js";

vi.mock("../utils/resolveBin.js", () => ({
resolveBin: (bin: string) => `path/to/${bin}`,
}));

describe("blockTSup", () => {
test("without addons or mode", () => {
const creation = testBlock(blockTSup, {
Expand Down
5 changes: 0 additions & 5 deletions src/next/blocks/blockTSup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { vi } from "vitest";
import { z } from "zod";

import { base } from "../base.js";
Expand All @@ -10,10 +9,6 @@ import { blockPackageJson } from "./blockPackageJson.js";
import { getPackageDependencies } from "./packageData.js";
import { CommandPhase } from "./phases.js";

vi.mock("../utils/resolveBin.js", () => ({
resolveBin: (bin: string) => `path/to/${bin}`,
}));

export const blockTSup = base.createBlock({
about: {
name: "tsup",
Expand Down

0 comments on commit 4f45825

Please sign in to comment.