diff --git a/packages/rsbuild-plugin/src/__tests__/hooks.test.ts b/packages/rsbuild-plugin/src/__tests__/hooks.test.ts index 13a099c99..9e9e3da0c 100644 --- a/packages/rsbuild-plugin/src/__tests__/hooks.test.ts +++ b/packages/rsbuild-plugin/src/__tests__/hooks.test.ts @@ -37,6 +37,7 @@ interface TransformContext { resourcePath: string environment: Environment addDependency: (path: string) => void + addMissingDependency: (path: string) => void } type Transform = (context: TransformContext) => unknown @@ -173,6 +174,7 @@ async function extract( resourcePath: join(root, 'src', 'App.tsx'), environment, addDependency: () => {}, + addMissingDependency: () => {}, }) } @@ -249,6 +251,7 @@ describe('CSS revisions', () => { resourcePath: path, environment: web, addDependency: () => {}, + addMissingDependency: () => {}, }), ) expect(serve()).toContain(`.${first}{color:red}`) @@ -282,12 +285,14 @@ describe('CSS revisions', () => { resourcePath: path, environment: web, addDependency: () => {}, + addMissingDependency: () => {}, }) hooks.css({ code: '', resourcePath: path, environment: node, addDependency: () => {}, + addMissingDependency: () => {}, }) // Only the web build has seen the sheet change since it served it await extract(hooks, app('tan')) @@ -296,6 +301,7 @@ describe('CSS revisions', () => { resourcePath: path, environment: node, addDependency: () => {}, + addMissingDependency: () => {}, }) const passes = builds.map((build) => { diff --git a/packages/webpack-plugin/src/__tests__/plugin.test.ts b/packages/webpack-plugin/src/__tests__/plugin.test.ts index c51fbbe94..e3651b401 100644 --- a/packages/webpack-plugin/src/__tests__/plugin.test.ts +++ b/packages/webpack-plugin/src/__tests__/plugin.test.ts @@ -481,6 +481,7 @@ describe('devupUIWebpackPlugin', () => { }) expect(loadDevupConfigSyncSpy).toHaveBeenCalledWith( join(context, 'devup.json'), + expect.any(Set), ) })