Skip to content

Commit

Permalink
chore: fix Mac CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Feb 3, 2024
1 parent 5fe948a commit d47625e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('ViteTypeScriptTemplate', () => {
await yarnOrNpmSpawn(['link:remove']);
if (os.platform() !== 'win32') {
// Windows platform `fs.remove(dir)` logic useing npm `npm run test:clear`.
fs.remove(dir);
await fs.remove(dir);
}
});

Expand All @@ -48,7 +48,6 @@ describe('ViteTypeScriptTemplate', () => {
path.join('src', 'main.ts'),
path.join('src', 'renderer.ts'),
path.join('src', 'preload.ts'),
path.join('src', 'types.d.ts'),
];
for (const filename of expectedFiles) {
it(`${filename} should exist`, async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default defineConfig((env) => {
outDir: `.vite/renderer/${name}`,
},
plugins: [pluginExposeRenderer(name)],
resolve: {
preserveSymlinks: true,
},
clearScreen: false,
} as UserConfig;
});
3 changes: 3 additions & 0 deletions packages/template/vite/tmpl/vite.renderer.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export default defineConfig((env) => {
outDir: `.vite/renderer/${name}`,
},
plugins: [pluginExposeRenderer(name)],
resolve: {
preserveSymlinks: true,
},
clearScreen: false,
};
});

0 comments on commit d47625e

Please sign in to comment.