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

Feat: update files paths for vitest config #117

Open
GuillaumeKESTEMAN opened this issue Apr 19, 2024 · 0 comments
Open

Feat: update files paths for vitest config #117

GuillaumeKESTEMAN opened this issue Apr 19, 2024 · 0 comments

Comments

@GuillaumeKESTEMAN
Copy link
Collaborator

GuillaumeKESTEMAN commented Apr 19, 2024

Quand on utilise le plugin vitest cela plante car vitest fait un cd dans le dossier du test puis exécute le test.

Il ne trouve pas le setupFiles, ni de tests dans le dossier src car le plugin a redirigé directement dans le bon dossier du test.

Je propose de remplacer setupFiles par path.resolve(__dirname, './src/setupTests.tsx').
Et include par ['**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant