Enable testing with vitest (#13)
Resolves #12. Co-authored-by: Jos de Jong <wjosdejong@gmail.com> Reviewed-on: #13 Co-authored-by: Glen Whitney <glen@studioinfinity.org> Co-committed-by: Glen Whitney <glen@studioinfinity.org>
This commit is contained in:
parent
06909a6a5e
commit
047385d56b
7 changed files with 820 additions and 14 deletions
16
etc/vitest.config.ts
Normal file
16
etc/vitest.config.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import {dirname} from 'node:path'
|
||||
import {defineConfig} from 'vitest/config'
|
||||
|
||||
const rootDir = dirname(__dirname)
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
includeSource: ['build/**/*.js'],
|
||||
alias: [
|
||||
{
|
||||
find: /^@(.*)/,
|
||||
replacement: rootDir + '/build$1.js'
|
||||
},
|
||||
],
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue