mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-07-25 09:45:04 +02:00
* enhance(frontend/test): frontend e2eをVitest Browser Modeに移行
* fix
* fix unit tests
* fix
* fix
* update playwright
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* fix
* perf
* Revert "perf"
This reverts commit e60e965c3c.
* fix
23 lines
505 B
TypeScript
23 lines
505 B
TypeScript
import { defineConfig, mergeConfig } from 'vitest/config';
|
|
import { getConfig } from './vite.config.js';
|
|
|
|
export default mergeConfig(getConfig(), defineConfig({
|
|
test: {
|
|
include: ['./test/unit/**/*.test.ts'],
|
|
environment: 'happy-dom',
|
|
setupFiles: ['./test/setup.unit.ts'],
|
|
deps: {
|
|
optimizer: {
|
|
web: {
|
|
include: [
|
|
// XXX: misskey-dev/browser-image-resizer has no "type": "module"
|
|
'browser-image-resizer',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
includeSource: ['src/**/*.ts'],
|
|
},
|
|
}));
|
|
|