diff --git a/__tests__/non-parallel-cases/project-page.gitako.ts b/__tests__/non-parallel-cases/project-page.gitako.ts index 9ae64a9..22f99f8 100644 --- a/__tests__/non-parallel-cases/project-page.gitako.ts +++ b/__tests__/non-parallel-cases/project-page.gitako.ts @@ -3,7 +3,7 @@ import { expectToFind, expectToNotFind, scroll, - selectFileTreeItem, + selectFileTreeItem } from '../utils' describe(`in Gitako project page`, () => { @@ -23,7 +23,7 @@ describe(`in Gitako project page`, () => { const filesEle = await page.waitForSelector('.gitako-side-bar .files') // node of tsconfig.json should NOT be rendered before scroll down await expectToNotFind(selectFileTreeItem('package.json')) - const box = await filesEle.boundingBox() + const box = await filesEle?.boundingBox() if (box) { await page.mouse.move(box.x + 40, box.y + 40) await scroll({ totalDistance: 200, duration: 1000 }) diff --git a/__tests__/tsconfig.json b/__tests__/tsconfig.json index fe8506a..4e4518e 100644 --- a/__tests__/tsconfig.json +++ b/__tests__/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "../tsconfig.json", "include": ["."], + "exclude": ["tsconfig.json"], "compilerOptions": { "target": "ES3", "module": "CommonJS",