mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-18 09:18:04 +09:00
Run them in headless [vitest browser mode](https://vitest.dev/guide/browser/) in chromium and firefox. Similar UX than current tests, it's about 5 times as slow (goes from 1s to 5s on my machine), but definitely worth it as it removes all happy-dom problems. --------- Signed-off-by: silverwind <me@silverwind.io>
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
declare module '*.svg' {
|
|
const value: string;
|
|
export default value;
|
|
}
|
|
|
|
declare module '*.txt' {
|
|
const value: string;
|
|
export default value;
|
|
}
|
|
|
|
declare module '*.vue' {
|
|
import type {DefineComponent} from 'vue';
|
|
const component: DefineComponent<unknown, unknown, any>;
|
|
export default component;
|
|
}
|
|
|
|
declare module 'idiomorph' {
|
|
interface Idiomorph {
|
|
morph(existing: Node | string, replacement: Node | string, options?: {morphStyle: 'innerHTML' | 'outerHTML'}): void;
|
|
}
|
|
export const Idiomorph: Idiomorph;
|
|
}
|
|
|
|
declare module 'swagger-ui-dist/swagger-ui-es-bundle.js' {
|
|
const value = await import('swagger-ui-dist');
|
|
export default value.SwaggerUIBundle;
|
|
}
|
|
|
|
declare module '@citation-js/core' {
|
|
export class Cite {
|
|
constructor(data: string);
|
|
format(format: string, options?: Record<string, any>): string;
|
|
}
|
|
export const plugins: {
|
|
config: {
|
|
get(name: string): any;
|
|
};
|
|
};
|
|
}
|
|
|
|
declare module '@citation-js/plugin-software-formats' {}
|
|
declare module '@citation-js/plugin-bibtex' {}
|
|
declare module '@citation-js/plugin-csl' {}
|