diff --git a/packages/webpack-rsc/src/webpack-rsc-server-loader.test.ts b/packages/webpack-rsc/src/webpack-rsc-server-loader.test.ts index 0596d49..16623f6 100644 --- a/packages/webpack-rsc/src/webpack-rsc-server-loader.test.ts +++ b/packages/webpack-rsc/src/webpack-rsc-server-loader.test.ts @@ -13,7 +13,7 @@ const currentDirname = path.dirname(url.fileURLToPath(import.meta.url)); async function callLoader( filename: string, - clientReferenceMap: ClientReferencesMap, + clientReferencesMap: ClientReferencesMap, ): Promise { const input = await fs.readFile(path.resolve(currentDirname, filename)); @@ -21,7 +21,7 @@ async function callLoader( const context: Partial< webpack.LoaderContext > = { - getOptions: () => ({clientReferencesMap: clientReferenceMap}), + getOptions: () => ({clientReferencesMap}), resourcePath: path.resolve(currentDirname, filename), cacheable: jest.fn(), callback: (error, content) => { @@ -48,9 +48,9 @@ async function callLoader( describe(`webpackRscServerLoader`, () => { test(`keeps only the 'use client' directive, and exported functions that are transformed to client references`, async () => { - const clientReferenceMap: ClientReferencesMap = new Map(); + const clientReferencesMap: ClientReferencesMap = new Map(); const filename = `__fixtures__/client-components.js`; - const output = await callLoader(filename, clientReferenceMap); + const output = await callLoader(filename, clientReferencesMap); const idPrefix = path.relative( process.cwd(), @@ -78,9 +78,9 @@ export const ComponentC = { }); test(`does not change modules without a 'use client' directive`, async () => { - const clientReferenceMap: ClientReferencesMap = new Map(); + const clientReferencesMap: ClientReferencesMap = new Map(); const filename = `__fixtures__/server-component.js`; - const output = await callLoader(filename, clientReferenceMap); + const output = await callLoader(filename, clientReferencesMap); expect(output).toEqual( `