Skip to content

Commit

Permalink
try to solve the test in action
Browse files Browse the repository at this point in the history
  • Loading branch information
xfsnowind committed Apr 23, 2024
1 parent 8db8fe7 commit 5e6b316
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/devServer.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="cypress" />
/// <reference types="cypress" />
/// <reference types="node" />
import type { EventEmitter } from 'events';
import type { RspackDevServer } from '@rspack/dev-server';
import type { Configuration } from '@rspack/core';
import { SourceRelativeRspackResult } from './helpers/sourceRelativeRspackModules';
Expand All @@ -19,7 +19,7 @@ export type ConfigHandler = Partial<Configuration> | (() => Partial<Configuratio
export type DevServerConfig = {
specs: Cypress.Spec[];
cypressConfig: Cypress.PluginConfigOptions;
devServerEvents: NodeJS.EventEmitter;
devServerEvents: EventEmitter;
onConfigNotFound?: (devServer: 'rspack', cwd: string, lookedIn: string[]) => void;
rspackConfig?: ConfigHandler;
} & FrameworkConfig;
Expand Down
3 changes: 2 additions & 1 deletion src/devServer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="cypress" />
import debugLib from 'debug'
import type { EventEmitter } from 'events'
import type { RspackDevServer } from '@rspack/dev-server'
import type { Compiler, Configuration } from '@rspack/core'

Expand Down Expand Up @@ -34,7 +35,7 @@ export type ConfigHandler =
export type DevServerConfig = {
specs: Cypress.Spec[]
cypressConfig: Cypress.PluginConfigOptions
devServerEvents: NodeJS.EventEmitter
devServerEvents: EventEmitter
onConfigNotFound?: (devServer: 'rspack', cwd: string, lookedIn: string[]) => void
rspackConfig?: ConfigHandler // Derived from the user's rspack config
} & FrameworkConfig
Expand Down
1 change: 0 additions & 1 deletion test/makeDefaultRspackConfig.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import path from 'path'
import { describe, expect } from '@jest/globals'
import EventEmitter from 'events'
import { CreateFinalRspackConfig } from '../src/createRspackDevServer'
Expand Down

0 comments on commit 5e6b316

Please sign in to comment.