Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate-blueprint: drop vitest.test-setup.ts #27358

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading