Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): Fix TS type in createServer.test.ts #10023

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions packages/api-server/src/__tests__/createServer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import type { MockInstance } from 'vitest'

import { getConfig } from '@redwoodjs/project-config'

import type { createServer as tCreateServer } from '../createServer.js'
import {
resolveOptions,
DEFAULT_CREATE_SERVER_OPTIONS,
Expand All @@ -23,11 +24,7 @@ import {
// Set up RWJS_CWD.
let original_RWJS_CWD: string | undefined

// We have to asynchronously import the module because it relies on RWJS_CWD being set.
// TODO(jtoar): The lint rule below is complaining about the import,
// but I'm not sure what else to do at the moment. Happy to take suggestions!
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
let createServer: typeof import('../createServer.js').createServer
let createServer: typeof tCreateServer

beforeAll(async () => {
original_RWJS_CWD = process.env.RWJS_CWD
Expand Down
Loading