refactor: move daemon registry into host-runtime store
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import { defineConfig, configDefaults } from "vitest/config";
|
||||
import path from "path";
|
||||
|
||||
const appNodeModules = path.resolve(__dirname, "node_modules");
|
||||
const rootNodeModules = path.resolve(__dirname, "../../node_modules");
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
environment: "node",
|
||||
@@ -12,12 +15,27 @@ export default defineConfig({
|
||||
* keeps `process.send` intact so the app tests can boot before hitting the intentional failures.
|
||||
*/
|
||||
pool: "forks",
|
||||
server: {
|
||||
deps: {
|
||||
fallbackCJS: true,
|
||||
inline: [
|
||||
"zustand",
|
||||
"@tanstack/react-query",
|
||||
"react-native-web",
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "src"),
|
||||
"@server": path.resolve(__dirname, "../server/src"),
|
||||
"react-native": "react-native-web",
|
||||
// Point to the ESM build so Vite can transform its imports and apply the
|
||||
// react alias below (the CJS build uses require('react') which bypasses
|
||||
// Vite alias resolution).
|
||||
"react-native": path.resolve(rootNodeModules, "react-native-web/dist/index.js"),
|
||||
react: path.resolve(appNodeModules, "react"),
|
||||
"react-dom": path.resolve(appNodeModules, "react-dom"),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user