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

add unit test case for next.rs api #53679

Merged
merged 4 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/next/src/build/swc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ interface TurboEngineOptions {
memoryLimit?: number
}

interface Issue {
export interface Issue {
severity: string
category: string
filePath: string
Expand All @@ -449,7 +449,7 @@ interface Issue {
subIssues: Issue[]
}

interface Diagnostics {}
export interface Diagnostics {}

export type TurbopackResult<T = {}> = T & {
issues: Issue[]
Expand All @@ -462,19 +462,19 @@ interface Middleware {
matcher?: string[]
}

interface Entrypoints {
export interface Entrypoints {
routes: Map<string, Route>
middleware?: Middleware
pagesDocumentEndpoint: Endpoint
pagesAppEndpoint: Endpoint
pagesErrorEndpoint: Endpoint
}

interface Update {
export interface Update {
update: unknown
}

interface Project {
export interface Project {
update(options: ProjectOptions): Promise<void>
entrypointsSubscribe(): AsyncIterableIterator<TurbopackResult<Entrypoints>>
hmrEvents(identifier: string): AsyncIterableIterator<TurbopackResult<Update>>
Expand Down