From ea3bfe1db1c43bbb44f0074f2fc3160e10eb2492 Mon Sep 17 00:00:00 2001 From: Julien Date: Sat, 14 Dec 2024 12:51:58 +0100 Subject: [PATCH] test: fix failing tests --- factories/inertia_factory.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/factories/inertia_factory.ts b/factories/inertia_factory.ts index b6b77ea..3faf3fc 100644 --- a/factories/inertia_factory.ts +++ b/factories/inertia_factory.ts @@ -16,6 +16,7 @@ import { HttpContextFactory } from '@adonisjs/core/factories/http' import { defineConfig } from '../index.js' import { Inertia } from '../src/inertia.js' import { InertiaHeaders } from '../src/headers.js' +import { ServerRenderer } from '../src/server_renderer.js' import { AssetsVersion, InertiaConfig } from '../src/types.js' type FactoryParameters = { @@ -80,6 +81,8 @@ export class InertiaFactory { async create() { const config = await defineConfig(this.#parameters.config || {}).resolver(this.#getApp()) + // @ts-ignore + ServerRenderer.runtime = undefined return new Inertia(this.#parameters.ctx, config, this.#vite) } }