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

Fix vitest config after prettier format to allow applying front modules #11142

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 @@ -29,6 +29,7 @@ export default defineConfig({
},
include: ['src/main/webapp/**/*.ts?(x)'],
exclude: [
// keep this comment to be able to apply other front module after prettier format
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not really found on this comment that will stay on generated project, just for generation purpose.
I'll try another solution and let you know.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, it was just the quickest fix in the mean time. Feel free to propose better solution, and rework the replace after lines for each front

...configDefaults.coverage.exclude as string[],
],
provider: 'istanbul',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default defineConfig({
},
include: ['src/main/webapp/**/*.ts?(x)'],
exclude: [
// keep this comment to be able to apply other front module after prettier format
...configDefaults.coverage.exclude as string[],
'src/main/webapp/app/injections.ts',
'src/main/webapp/app/index.tsx',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default defineConfig({
},
include: ['src/main/webapp/**/*.ts?(x)'],
exclude: [
// keep this comment to be able to apply other front module after prettier format
...configDefaults.coverage.exclude as string[],
'src/main/webapp/app/main.ts',
'src/main/webapp/app/injections.ts',
Expand Down
Loading