Skip to content

Commit

Permalink
Merge pull request #27358 from mshima/test-setup
Browse files Browse the repository at this point in the history
generate-blueprint: drop vitest.test-setup.ts
  • Loading branch information
DanielFran committed Sep 23, 2024
2 parents d49bf40 + 665c13b commit 065560f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -860,9 +860,6 @@ exports[`generator - generate-blueprint with all option should match snapshot 1`
"vitest.config.ts": {
"stateCleared": "modified",
},
"vitest.test-setup.ts": {
"stateCleared": "modified",
},
}
`;

Expand Down Expand Up @@ -904,8 +901,5 @@ exports[`generator - generate-blueprint with default config should write files a
"vitest.config.ts": {
"stateCleared": "modified",
},
"vitest.test-setup.ts": {
"stateCleared": "modified",
},
}
`;
1 change: 0 additions & 1 deletion generators/generate-blueprint/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const files = asWriteFilesSection<any>({
'README.md',
'tsconfig.json',
'vitest.config.ts',
'vitest.test-setup.ts',
'.blueprint/cli/commands.mjs',
'.blueprint/generate-sample/command.mjs',
'.blueprint/generate-sample/generator.mjs',
Expand Down
5 changes: 4 additions & 1 deletion generators/generate-blueprint/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ export default class extends BaseGenerator {
get writing() {
return this.asWritingTaskGroup({
async cleanup({ control }) {
await control.cleanupFiles({ '8.5.1': ['.eslintrc.json'] });
await control.cleanupFiles({
'8.5.1': ['.eslintrc.json'],
'8.7.2': ['vitest.test-setup.ts'],
});
},
async writing() {
this.application.sampleWritten = this.jhipsterConfig.sampleWritten;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ export default defineConfig({
pool: 'forks',
hookTimeout: 20000,
exclude: [...defaultExclude.filter(val => val !== '**/cypress/**'), '**/templates/**', '**/resources/**'],
setupFiles: ['./vitest.test-setup.ts'],
},
});

This file was deleted.

0 comments on commit 065560f

Please sign in to comment.