chore: fix broken type check for test files (#7567)

**Motivation**

Check the types for test files

**Description**

- Add `test` folder for the `tsconfig.json` files

**Steps to test or reproduce**

- Run all tests
This commit is contained in:
Nazar Hussain
2025-03-13 14:47:22 +01:00
committed by GitHub
parent 7ce4939326
commit 9f78c9dad8
22 changed files with 24 additions and 44 deletions

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -32,7 +32,6 @@ describe.skip("eth1 / Eth1Provider", () => {
const logger = testLogger();
let db: BeaconDb;
let interval: NodeJS.Timeout;
beforeAll(async () => {
// Nuke DB to make sure it's empty
@@ -42,7 +41,6 @@ describe.skip("eth1 / Eth1Provider", () => {
});
afterAll(async () => {
clearInterval(interval);
controller.abort();
await db.close();
await LevelDbController.destroy(dbLocation);

View File

@@ -1,6 +0,0 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"noEmit": false
}
}

View File

@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"exclude": ["../../node_modules/it-pipe"],
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,4 +1,5 @@
{
"extends": "../../tsconfig.json",
"include": ["src", "test"],
"exclude": ["src/index.browser.ts", "test/unit/webEsmBundle.browser.test.ts"]
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +0,0 @@
{
"extends": "../tsconfig",
"compilerOptions": {
"noEmit": false
}
}

View File

@@ -1,10 +1,10 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
// To fix error "Duplicate identifier 'Buffer'"
// This can save time during compilation at the expense of type-system accuracy.
// For example, two libraries could define two copies of the same type in an inconsistent way.
// This can save time during compilation at the expense of type-system accuracy.
// For example, two libraries could define two copies of the same type in an inconsistent way.
// Rather than doing a full check of all d.ts files, TypeScript will type check
// the code you specifically refer to in your apps source code.
// https://www.typescriptlang.org/tsconfig#skipLibCheck

View File

@@ -1,14 +1,9 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"exclude": [
"../../node_modules/it-pipe"
],
"include": ["src", "test"],
"exclude": ["../../node_modules/it-pipe"],
"compilerOptions": {
"outDir": "lib",
"typeRoots": [
"../../node_modules/@types",
"../../types"
]
"typeRoots": ["../../node_modules/@types", "../../types"]
}
}
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -1,6 +1,6 @@
{
"extends": "../../tsconfig.json",
"include": ["src"],
"include": ["src", "test"],
"compilerOptions": {
"outDir": "lib"
}

View File

@@ -3,8 +3,6 @@
"compilerOptions": {
"emitDeclarationOnly": false,
"incremental": false,
// Enable it when upgrade `vite-plugin-dts`
// "noCheck": false,
"noEmit": true,
// To be used in the test fixtures
"resolveJsonModule": true,
@@ -16,4 +14,4 @@
"ts-node": {
"transpileOnly": true
}
}
}