mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
Replace test framework: jest -> vitest (#281)
* Replace test framework: jest -> vitest * nit - remove deprecated npm scripts * Add vitest config * Add a few basic tests * Update actions with vitest params * Add correct expectations * Remove jest config
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/// <reference types='vitest' />
|
||||
import { defineConfig } from 'vite'
|
||||
import path from 'path'
|
||||
import dts from 'vite-plugin-dts'
|
||||
@@ -27,8 +28,10 @@ export default defineConfig({
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': '/src'
|
||||
}
|
||||
}
|
||||
alias: { '@': '/src' },
|
||||
},
|
||||
test: {
|
||||
alias: { '@': '../src' },
|
||||
environment: 'jsdom',
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user