From fc247591a12adcecc205b2b1572f3f706ee66d18 Mon Sep 17 00:00:00 2001 From: LeonOstrez <leon.ostrez@gmail.com> Date: Tue, 20 Jun 2023 11:49:42 +0200 Subject: [PATCH] move .gitignore back to root, add log for exporting integration tests without api key --- src/.gitignore => .gitignore | 4 ++-- package.json | 2 +- src/commands/export.js | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) rename src/.gitignore => .gitignore (98%) diff --git a/src/.gitignore b/.gitignore similarity index 98% rename from src/.gitignore rename to .gitignore index 8ebf3e0b..12a7dcb5 100644 --- a/src/.gitignore +++ b/.gitignore @@ -104,10 +104,10 @@ dist .tern-port -../.idea/ +.idea/ package-lock.json test.js # Pythagora .pythagora/ -pythagora_tests/ +.github diff --git a/package.json b/package.json index c230c720..c149395a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pythagora", - "version": "0.0.66", + "version": "0.0.67", "author": { "name": "Zvonimir Sabljic", "email": "hi@pythagora.ai" diff --git a/src/commands/export.js b/src/commands/export.js index e4b3de34..e6377e12 100644 --- a/src/commands/export.js +++ b/src/commands/export.js @@ -24,7 +24,8 @@ const { getJestTest, getJestTestName, isEligibleForExport, - cleanupGPTResponse + cleanupGPTResponse, + checkForAPIKey } = require("../helpers/api"); const _ = require('lodash'); const args = require('../utils/getArgs.js'); @@ -129,6 +130,7 @@ function saveExportJson(exportsMetadata, test, testName) { } (async () => { + checkForAPIKey(); setUpPythagoraDirs(); cleanupDataFolder(); let exportsMetadata = JSON.parse(fs.readFileSync(`./${PYTHAGORA_METADATA_DIR}/${EXPORT_METADATA_FILENAME}`));