Skip to content

Commit e37252b

Browse files
authored
fix(test): disable solid HMR in tests to fix path error on Windows (@nadalaba) (monkeytypegame#7677)
### Description Solid’s refresh runtime is injecting a virtual module that resolves to an invalid `file:///@` URL causing tests to fail on Windows: > TypeError: The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received 'file:///@solid-refresh' HMR isn’t used in vitest's SSR test environment, so disabling it on all platforms is safe.
1 parent 29d3206 commit e37252b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import solidPlugin from "vite-plugin-solid";
66
const plugins = [
77
languageHashes({ skip: true }),
88
envConfig({ isDevelopment: true, clientVersion: "TESTING", env: {} }),
9-
solidPlugin(),
9+
solidPlugin({ hot: false }),
1010
];
1111

1212
export const projects: UserWorkspaceConfig[] = [

0 commit comments

Comments
 (0)