Skip to content

Commit b3d5aa7

Browse files
committed
fix(test): snapshot serializer resolution
1 parent cbc5b12 commit b3d5aa7

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @bomb.sh/tools
22

3+
## 0.3.4
4+
5+
### Patch Changes
6+
7+
- Fixes `vitest-ansi-serializer` resolution issue
8+
39
## 0.3.3
410

511
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bomb.sh/tools",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"description": "The internal dev, build, and lint CLI for Bombshell projects",
55
"keywords": [
66
"bombshell",

src/test-utils/fixture.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe("createFixture", () => {
3434
it("cleanup removes the temp directory", async () => {
3535
const fixture = await createFixture({ "a.txt": "" });
3636
const path = fixture.root;
37-
expect(await fixture.isDirectory(fixture.root)).toBe(true);
37+
expect(await fixture.isDirectory(".")).toBe(true);
3838
await fixture.cleanup();
3939
expect(existsSync(path)).toBe(false);
4040
});

src/test-utils/vitest.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { fileURLToPath } from "node:url";
12
import { defineConfig } from "vitest/config";
23

34
export default defineConfig({
@@ -6,6 +7,8 @@ export default defineConfig({
67
env: {
78
FORCE_COLOR: "1",
89
},
9-
snapshotSerializers: ["vitest-ansi-serializer"],
10+
snapshotSerializers: [
11+
fileURLToPath(import.meta.resolve("vitest-ansi-serializer")),
12+
],
1013
},
1114
});

0 commit comments

Comments
 (0)