mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-07 23:04:06 -05:00
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:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"extends": "../tsconfig",
|
||||
"compilerOptions": {
|
||||
"noEmit": false
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"exclude": ["../../node_modules/it-pipe"],
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src", "test"],
|
||||
"exclude": ["src/index.browser.ts", "test/unit/webEsmBundle.browser.test.ts"]
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"extends": "../tsconfig",
|
||||
"compilerOptions": {
|
||||
"noEmit": false
|
||||
}
|
||||
}
|
||||
@@ -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 app’s source code.
|
||||
// https://www.typescriptlang.org/tsconfig#skipLibCheck
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"include": ["src"],
|
||||
"include": ["src", "test"],
|
||||
"compilerOptions": {
|
||||
"outDir": "lib"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user