diff --git a/test/unit/esm-interpolate/esm-interpolate.test.tsx b/test/unit/esm-interpolate/esm-interpolate.test.tsx index c6ffb8137582f0..3be0c8148b968a 100644 --- a/test/unit/esm-interpolate/esm-interpolate.test.tsx +++ b/test/unit/esm-interpolate/esm-interpolate.test.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { renderToString } from 'react-dom/server' import * as nextRouter from 'next/router' diff --git a/test/unit/esm-interpolate/fixture.tsx b/test/unit/esm-interpolate/fixture.tsx index 90485c11e409de..af413aa5b5a0e4 100644 --- a/test/unit/esm-interpolate/fixture.tsx +++ b/test/unit/esm-interpolate/fixture.tsx @@ -1,4 +1,3 @@ -import React from 'react' import { useRouter } from 'next/router' export const Foo = () => { diff --git a/test/unit/link-warnings.test.tsx b/test/unit/link-warnings.test.tsx index d102876f6a361e..1ed744fdf5f827 100644 --- a/test/unit/link-warnings.test.tsx +++ b/test/unit/link-warnings.test.tsx @@ -3,7 +3,6 @@ */ import { act, render } from '@testing-library/react' import Link from 'next/link' -import React from 'react' describe('', () => { let spy diff --git a/test/unit/next-dynamic.test.tsx b/test/unit/next-dynamic.test.tsx index a46004030e4369..13750260633934 100644 --- a/test/unit/next-dynamic.test.tsx +++ b/test/unit/next-dynamic.test.tsx @@ -1,7 +1,6 @@ /** * @jest-environment jsdom */ -import React from 'react' import { act, render } from '@testing-library/react' import dynamic from 'next/dynamic' diff --git a/tsconfig.base.json b/tsconfig.base.json deleted file mode 100644 index ba074f2baea907..00000000000000 --- a/tsconfig.base.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "strict": false, - "noEmit": true, - "allowJs": true, - "resolveJsonModule": true, - "jsx": "react-jsx", - "module": "esnext", - "target": "ESNext", - "esModuleInterop": true, - "moduleResolution": "node", - "types": ["react", "jest", "node", "trusted-types", "jest-extended"], - "paths": { - "development-sandbox": ["./test/lib/development-sandbox"], - "next-test-utils": ["./test/lib/next-test-utils"], - "amp-test-utils": ["./test/lib/amp-test-utils"], - "next-webdriver": ["./test/lib/next-webdriver"], - "e2e-utils": ["./test/lib/e2e-utils"], - "test-data-service/*": ["./test/lib/test-data-service/*"], - "test-log": ["./test/lib/test-log"] - } - } -} diff --git a/tsconfig.json b/tsconfig.json index f35f67680c5c27..d7dc15ddb9469a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,25 @@ { - "extends": "./tsconfig.base.json", - "include": ["test/**/*.test.ts", "test/**/*.test.tsx"], - "exclude": ["node_modules"] + "compilerOptions": { + "allowJs": true, + "esModuleInterop": true, + "jsx": "react-jsx", + "module": "esnext", + "moduleResolution": "node", + "noEmit": true, + "noUnusedLocals": true, + "paths": { + "amp-test-utils": ["./test/lib/amp-test-utils"], + "development-sandbox": ["./test/lib/development-sandbox"], + "e2e-utils": ["./test/lib/e2e-utils"], + "next-test-utils": ["./test/lib/next-test-utils"], + "next-webdriver": ["./test/lib/next-webdriver"], + "test-data-service/*": ["./test/lib/test-data-service/*"], + "test-log": ["./test/lib/test-log"] + }, + "resolveJsonModule": true, + "strict": false, + "target": "ESNext", + "types": ["react", "jest", "node", "trusted-types", "jest-extended"] + }, + "include": ["test/**/*.test.ts", "test/**/*.test.tsx"] }