Skip to content

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Dec 14, 2024
1 parent 0c9f022 commit ea3bfe1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions factories/inertia_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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)
}
}

0 comments on commit ea3bfe1

Please sign in to comment.