Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Mar 3, 2024
1 parent ccbbfc0 commit f2b2d61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server_renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class ServerRenderer {
* First, we need to get the client-side entrypoint module
*/
console.log(this.config.entrypoint)
console.log(this.viteDevServer.moduleGraph.idToModuleMap)
console.log(this.viteDevServer.moduleGraph.idToModuleMap.keys())
const entryMod = this.viteDevServer.moduleGraph.getModuleById(this.config.entrypoint)

/**
Expand Down
5 changes: 4 additions & 1 deletion tests/inertia.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { HttpContextFactory, RequestFactory } from '@adonisjs/core/factories/htt

import { InertiaFactory } from '../factories/inertia_factory.js'
import { setupViewMacroMock, setupVite } from '../tests_helpers/index.js'
import { joinToURL } from '@poppinss/utils'

Check failure on line 17 in tests/inertia.spec.ts

View workflow job for this annotation

GitHub Actions / typecheck / typecheck

'joinToURL' is declared but its value is never read.
import { fileURLToPath } from 'node:url'

test.group('Inertia', () => {
test('location should returns x-inertia-location with 409 code', async ({ assert }) => {
Expand Down Expand Up @@ -423,7 +425,8 @@ test.group('Inertia | Ssr | CSS Preloading', () => {
.withVite(vite)
.merge({
config: {
entrypoint: new URL('app.ts', fs.baseUrl).href,
entrypoint: fileURLToPath(new URL('app.ts', fs.baseUrl)),
// entrypoint: joinToURL(fs.baseUrl, 'app.ts'),
ssr: { enabled: true, entrypoint: 'app.ts' },
},
})
Expand Down

0 comments on commit f2b2d61

Please sign in to comment.