Skip to content

Commit

Permalink
fix(test): normalize path to a consistent format for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
shivarm committed Jan 21, 2025
1 parent 1ecbd0b commit 6358f96
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 421 deletions.
4 changes: 2 additions & 2 deletions packages/zudoku/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,13 @@
"@types/semver": "7.5.8",
"@types/unist": "^3.0.3",
"@types/yargs": "17.0.33",
"@vitest/coverage-v8": "2.1.8",
"@vitest/coverage-v8": "3.0.2",
"mdast-util-mdx": "3.0.0",
"react": "catalog:",
"react-dom": "catalog:",
"rollup-plugin-visualizer": "5.14.0",
"typescript": "5.7.2",
"vitest": "2.1.8"
"vitest": "3.0.2"
},
"peerDependencies": {
"react": ">=19",
Expand Down
7 changes: 6 additions & 1 deletion packages/zudoku/src/vite/config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@ it("Should correctly load zudoku.config.ts file", async () => {
},
rootPath,
);
expect(config.__meta.path).includes("/with-config/zudoku.config.");
// Normalize the path to Unix-style format
const normalizedPath = config.__meta.path
.split(path.sep)
.join(path.posix.sep);

expect(normalizedPath).includes("/with-config/zudoku.config.");
});
Loading

0 comments on commit 6358f96

Please sign in to comment.