Skip to content

How to mock virtual:react-router/server-build #7205

Answered by hi-ogawa
brendanfmartin asked this question in Q&A
Discussion options

You must be logged in to vote

import { resolve } from "node:path" should be correct. Here is an example https://stackblitz.com/edit/vitest-dev-vitest-w8nrf7qg?file=vite.config.ts

If this is not working for your setup, can you provide a reproduction?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@brendanfmartin
Comment options

@hi-ogawa
Comment options

@hi-ogawa
Comment options

@brendanfmartin
Comment options

Answer selected by brendanfmartin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants