Skip to content

Commit

Permalink
add global setup for unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jul 13, 2023
1 parent 38c533c commit 07a840b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/vitest.unit.globalSetup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export async function setup() {
console.log('ICU version:', process.versions.icu)
}
1 change: 1 addition & 0 deletions vitest.unit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default {
test: {
...config.test,
environmentMatchGlobs: [['packages/vue-i18n-core/**', 'jsdom']],
globalSetup: ['./scripts/vitest.unit.globalSetup.ts'],
exclude: [...configDefaults.exclude, '**/e2e/**']
}
} as UserConfig

0 comments on commit 07a840b

Please sign in to comment.