Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .changeset/shaggy-regions-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

---
8 changes: 6 additions & 2 deletions packages/react/testing-library/src/vitest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ export const createVitestConfig = async (options) => {
'@lynx-js/react/transform',
);
// relativePath should be stable between different runs with different cwd
const relativePath = path.relative(
const relativePath = normalizeSlashes(path.relative(
__dirname,
sourcePath,
);
));
const basename = path.basename(sourcePath);
const result = transformReactLynxSync(sourceText, {
mode: 'test',
Expand Down Expand Up @@ -123,3 +123,7 @@ export const createVitestConfig = async (options) => {
},
});
};

function normalizeSlashes(file) {
return file.replaceAll(path.win32.sep, '/');
}
Loading