Skip to content

Commit ed9b99e

Browse files
author
Luca Forstner
committed
Fix type
1 parent 86317f8 commit ed9b99e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/nextjs/test/config/wrappingLoader.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ jest.spyOn(fs, 'readFileSync').mockImplementation((filePath, options) => {
4949
return originalReadfileSync(filePath, options);
5050
});
5151

52-
import type { LoaderThis } from '../../src/config/loaders/types';
53-
import type { WrappingLoaderOptions } from '../../src/config/loaders/wrappingLoader';
5452
import wrappingLoader from '../../src/config/loaders/wrappingLoader';
5553

5654
const DEFAULT_PAGE_EXTENSION_REGEX = ['tsx', 'ts', 'jsx', 'js'].join('|');
@@ -73,7 +71,7 @@ describe('wrappingLoader', () => {
7371
const userCodeSourceMap = undefined;
7472

7573
const loaderPromise = new Promise<void>(resolve => {
76-
const loaderThis = {
74+
const loaderThis: any = {
7775
...defaultLoaderThis,
7876
resourcePath: '/my/pages/my/route.ts',
7977
callback: callback.mockImplementation(() => {
@@ -91,7 +89,7 @@ describe('wrappingLoader', () => {
9189
nextjsRequestAsyncStorageModulePath: '/my/request-async-storage.js',
9290
};
9391
},
94-
} satisfies LoaderThis<WrappingLoaderOptions>;
92+
};
9593

9694
wrappingLoader.call(loaderThis, userCode, userCodeSourceMap);
9795
});

0 commit comments

Comments
 (0)