-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(backend): Fix vitest configuration
- Loading branch information
Showing
9 changed files
with
125 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
#Identifiant du Google spreadsheet utilisé pour le calcul de la trajectoire. | ||
TRAJECTOIRE_SNBC_SHEET_ID= | ||
|
||
# Identifiant du Xlsx original utilisé pour le calcul de la trajectoire (stocké sur le drive) | ||
TRAJECTOIRE_SNBC_XLSX_ID= | ||
|
||
# Identifiant du dossier Google Drive dans lequel les spreadsheets des trajectoires calculées doivent être sauvés (un fichier par EPCI). | ||
# Il existe un dossier par environnement (dev, preprod, prod). | ||
TRAJECTOIRE_SNBC_RESULT_FOLDER_ID= | ||
|
||
# Contenu au format json du fichier de clé de compte de service permettant l'utilisation des api Google Drive et Google Spreadsheet | ||
GCLOUD_SERVICE_ACCOUNT_KEY= | ||
SUPABASE_DATABASE_URL=postgresql://postgres:postgres@localhost:54322/postgres | ||
|
||
# Clé de signature des tokens jwt. Utilisé pour vérifier la signature des tokens. | ||
SUPABASE_JWT_SECRET=super-secret-jwt-token-with-at-least-32-characters-long | ||
|
||
# Supabase database connection credentials | ||
SUPABASE_DATABASE_URL=postgresql://postgres:postgres@localhost:54322/postgres | ||
SUPABASE_URL=http://127.0.0.1:54321 | ||
SUPABASE_SERVICE_ROLE_KEY= | ||
SUPABASE_SERVICE_ROLE_KEY= | ||
SUPABASE_ANON_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
] | ||
}, | ||
"include": [ | ||
"vitest.config.mts", | ||
"vitest.config.mts", | ||
"src/**/*.test.ts", | ||
"src/**/*.spec.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
/// <reference types='vitest' /> | ||
import { defineConfig } from 'vitest/config'; | ||
|
||
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; | ||
import swc from 'unplugin-swc'; | ||
import { loadEnv } from 'vite'; | ||
import { defineConfig } from 'vitest/config'; | ||
|
||
export default defineConfig({ | ||
export default defineConfig(({ mode }) => ({ | ||
root: __dirname, | ||
cacheDir: '../node_modules/.vite/backend', | ||
cacheDir: '../node_modules/.vite/apps/backend', | ||
|
||
plugins: [nxViteTsPaths()], | ||
|
||
// Uncomment this if you are using workers. | ||
// worker: { | ||
// plugins: [ nxViteTsPaths() ], | ||
// }, | ||
plugins: [nxViteTsPaths(), swc.vite()], | ||
|
||
test: { | ||
fileParallelism: false, | ||
watch: false, | ||
globals: true, | ||
environment: 'jsdom', | ||
env: loadEnv(mode, process.cwd(), ''), | ||
|
||
include: [ | ||
'src/**/*.{test,spec,e2e-spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}', | ||
'./test/**/*.e2e-spec.ts', | ||
], | ||
|
||
reporters: ['default'], | ||
coverage: { | ||
reportsDirectory: '../coverage/backend', | ||
reportsDirectory: '../coverage/apps/backend', | ||
provider: 'v8', | ||
}, | ||
}, | ||
}); | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.