From f699b061815c6dd7d94ca7de7526211f1e27f077 Mon Sep 17 00:00:00 2001 From: angelespejo Date: Fri, 20 Sep 2024 15:07:53 +0200 Subject: [PATCH] :truck: chore(env): add vitest to env --- package.json | 2 +- src/main.js | 10 +++++----- src/main.test.js | 0 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 src/main.test.js diff --git a/package.json b/package.json index b5b58ea..85e7d3b 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "dev": "node ./src/bin.js", "build": "pnpm run --sequential \"/^build:.*/\"", "build:bins": "node ./.dev/build-bin.mjs", - "test": "vitest run", + "test": "vitest run src --passWithNoTests", "update-version": "changeset && changeset version", "push-manual": "git add . && git commit -m \"$1\" && git push -f origin main", "push": "git add . && cz && git push -f origin $@", diff --git a/src/main.js b/src/main.js index d8b5298..406df9f 100644 --- a/src/main.js +++ b/src/main.js @@ -462,8 +462,8 @@ class ConversationManager { name : 'Importing sentiment library', details : [ 'Fetching sentiment modules...', - 'Loadinging positive sentiment data...', - 'Loadinging negative sentiment data...', + 'Loading positive sentiment data...', + 'Loading negative sentiment data...', 'Sentiment library imported.', ], }, @@ -480,8 +480,8 @@ class ConversationManager { ], }, { - name : 'Loadinging creativity core', - details : [ 'Booting creativity engine...', 'Creativity core loadinged and running.' ], + name : 'Loading creativity core', + details : [ 'Booting creativity engine...', 'Creativity core loaded and running.' ], }, ] @@ -493,7 +493,7 @@ class ConversationManager { for ( const detail of step.details ) { console.log( detail ) - await new Promise( resolve => setTimeout( resolve, 200 ) ) // Add a short delay for visual effect + await new Promise( resolve => setTimeout( resolve, 150 ) ) // Add a short delay for visual effect } console.log( PROMPT_COLOR( `${step.name.replace( /\.\.\.$/, '' )} completed.` ) ) diff --git a/src/main.test.js b/src/main.test.js new file mode 100644 index 0000000..e69de29