diff --git a/biome.json b/biome.json index f1a5790..7c3e791 100644 --- a/biome.json +++ b/biome.json @@ -4,6 +4,9 @@ "indentStyle": "space", "lineWidth": 120 }, + "files": { + "ignore": ["node_modules/*", "node_modules/**/*", "dist/"] + }, "organizeImports": { "enabled": true }, "linter": { "enabled": true, diff --git a/jest.config.ts b/jest.config.ts index bec84bb..82ee1eb 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,5 +1,5 @@ // TODO: Improve coverage to 90% -const coverageToNumber = 40; // [0..100] +const coverageToNumber = 20; // [0..100] /* * For a detailed explanation regarding each configuration property and type check, visit: diff --git a/orchestrator/src/test/env.spec.ts b/orchestrator/src/test/env.spec.ts index 480112b..7fcda06 100644 --- a/orchestrator/src/test/env.spec.ts +++ b/orchestrator/src/test/env.spec.ts @@ -76,12 +76,24 @@ describe(".env Check", () => { wantErr: true, errorMessage: '"roochPrivateKey" is not allowed to be empty', }, + { + name: "missing X data", + data: { + PREFERRED_CHAIN: "ROOCH", + ROOCH_ORACLE_ADDRESS: "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c", + ROOCH_PRIVATE_KEY: "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c", + }, + wantErr: true, + errorMessage: '"xApiSecret" is not allowed to be empty', + }, { name: "valid data", data: { PREFERRED_CHAIN: "ROOCH", ROOCH_ORACLE_ADDRESS: "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c", ROOCH_PRIVATE_KEY: "0xf81628c3bf85c3fc628f29a3739365d4428101fbbecca0dcc7e3851f34faea6c", + X_API_KEY: "key", + X_API_SECRET: "secret", }, wantErr: false, errorMessage: '"roochPrivateKey" is not allowed to be empty',