test(core-extensions): Add & configure vitest

This commit is contained in:
T. R. Bernstein
2025-04-21 20:48:38 +02:00
parent 1b93170cde
commit 2e7c604218
3 changed files with 15 additions and 1 deletions

View File

@@ -22,7 +22,8 @@
"rollup": "^4.40.0",
"rollup-plugin-dts": "^6.2.1",
"tslib": "^2.8.1",
"typescript": "latest"
"typescript": "latest",
"vitest": "^3.1.2"
},
"author": "T. R. Bernstein <ljspkgs01-project@tabshift.dev>",
"license": "EUPL-1.2",

View File

@@ -0,0 +1,10 @@
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
alias: {
'@/': decodeURI(new URL('./src/', import.meta.url).pathname)
},
include: ['src/**/*.test.ts']
}
})

3
pnpm-lock.yaml generated
View File

@@ -44,6 +44,9 @@ importers:
typescript:
specifier: latest
version: 5.8.3
vitest:
specifier: ^3.1.2
version: 3.1.2
packages/prettier-config: {}