diff --git a/examples/package.json b/examples/package.json index 4453eac..edb2a12 100644 --- a/examples/package.json +++ b/examples/package.json @@ -29,7 +29,6 @@ "webpack-dev-server": "^5.0.2" }, "dependencies": { - "react-dom-lazyload-component": "file:../examples/react-dom-lazyload-component-4.1.5.tgz", "react-router-dom": "^6.22.3" } } \ No newline at end of file diff --git a/package.json b/package.json index 8311dda..5a8e6b2 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ "@types/jest": "29.5.12", "@types/jest-environment-puppeteer": "5.0.6", "@types/node": "20.11.25", - "@types/puppeteer": "7.0.4", "@types/react": "18.2.64", "@types/react-dom": "18.2.21", "@typescript-eslint/eslint-plugin": "7.1.1", diff --git a/src/__tests__/browser.test.tsx b/src/__tests__/browser.test.tsx index 0b99bbb..d48274b 100644 --- a/src/__tests__/browser.test.tsx +++ b/src/__tests__/browser.test.tsx @@ -1,5 +1,3 @@ -import 'expect-puppeteer'; - const waitForTimeout = (milliseconds: number): Promise => new Promise(r => setTimeout(r, milliseconds)); @@ -189,7 +187,8 @@ describe('Browser', () => { beforeAll(async () => { await page.setRequestInterception(true); page.on('request', interceptedRequest => { - if (interceptedRequest.isInterceptResolutionHandled()) return; + if ((interceptedRequest as any).isInterceptResolutionHandled()) + return; const requestUrl = interceptedRequest.url(); if (requestUrl.indexOf(suspenseExampleComponentName) > -1) { codeSplittedRequestUrl = requestUrl; diff --git a/tsconfig.json b/tsconfig.json index d33eae8..645bb86 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,6 @@ }, "include": ["src/**/*"], "exclude": [ - "node_modules", - "src/**/*.test.tsx" + "node_modules" ] } \ No newline at end of file