Skip to content

Commit

Permalink
chore(naming): Rename variable to match usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobbe committed Jun 9, 2024
1 parent 0512b45 commit daf2491
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"Flightcontrol",
"graphiql",
"memfs",
"mojombo",
"OGIMAGE",
"opentelemetry",
"pino",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import path from 'node:path'

import { vol } from 'memfs'
import { normalizePath } from 'vite'

import { afterAll, beforeAll, describe, it, expect, vi, Mock, beforeEach, afterEach } from 'vitest'

import { processPagesDir } from '@redwoodjs/project-config'
import type ProjectConfig from '@redwoodjs/project-config'
import type * as ProjectConfig from '@redwoodjs/project-config'

import { rscRoutesAutoLoader } from '../vite-plugin-rsc-routes-auto-loader'

Expand All @@ -14,14 +15,14 @@ vi.mock('fs', async () => ({ default: (await import('memfs')).fs }))
const RWJS_CWD = process.env.RWJS_CWD

vi.mock('@redwoodjs/project-config', async (importOriginal) => {
const originalGetPaths = await importOriginal<typeof ProjectConfig>()
const originalProjectConfig = await importOriginal<typeof ProjectConfig>()
return {
...originalGetPaths,
...originalProjectConfig,
getPaths: () => {
return {
...originalGetPaths.getPaths(),
...originalProjectConfig.getPaths(),
web: {
...originalGetPaths.getPaths().web,
...originalProjectConfig.getPaths().web,
routes: '/Users/mojombo/rw-app/web/src/Routes.tsx',
},
}
Expand Down

0 comments on commit daf2491

Please sign in to comment.