|
|
@ -47,6 +47,8 @@ export interface RuntimeTest<Props extends Record<string, any> = Record<string,
|
|
|
|
skip_mode?: Array<'server' | 'client' | 'hydrate'>;
|
|
|
|
skip_mode?: Array<'server' | 'client' | 'hydrate'>;
|
|
|
|
/** Skip if running with process.env.NO_ASYNC */
|
|
|
|
/** Skip if running with process.env.NO_ASYNC */
|
|
|
|
skip_no_async?: boolean;
|
|
|
|
skip_no_async?: boolean;
|
|
|
|
|
|
|
|
/** Skip if running without process.env.NO_ASYNC */
|
|
|
|
|
|
|
|
skip_async?: boolean;
|
|
|
|
html?: string;
|
|
|
|
html?: string;
|
|
|
|
ssrHtml?: string;
|
|
|
|
ssrHtml?: string;
|
|
|
|
compileOptions?: Partial<CompileOptions>;
|
|
|
|
compileOptions?: Partial<CompileOptions>;
|
|
|
@ -128,6 +130,10 @@ export function runtime_suite(runes: boolean) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (async_mode && config.skip_async) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (variant === 'hydrate') {
|
|
|
|
if (variant === 'hydrate') {
|
|
|
|
if (config.mode && !config.mode.includes('hydrate')) return 'no-test';
|
|
|
|
if (config.mode && !config.mode.includes('hydrate')) return 'no-test';
|
|
|
|
if (config.skip_mode?.includes('hydrate')) return true;
|
|
|
|
if (config.skip_mode?.includes('hydrate')) return true;
|
|
|
|