This repository was archived by the owner on Jun 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed
Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 2929 },
3030 "devDependencies" : {
3131 "@pocket-studios/eslint-config" : " 1.0.4" ,
32+ "@types/command-exists" : " ^1.2.0" ,
3233 "@types/jest" : " 26.0.13" ,
3334 "@types/node" : " 14.6.2" ,
3435 "@typescript-eslint/eslint-plugin" : " 3.6.1" ,
3536 "@typescript-eslint/parser" : " 3.7.1" ,
3637 "@vercel/ncc" : " 0.24.0" ,
38+ "command-exists" : " ^1.2.9" ,
3739 "eslint" : " 6.8.0" ,
3840 "eslint-config-airbnb" : " 18.2.0" ,
3941 "eslint-plugin-cypress" : " 2.11.1" ,
6163 "transform" : {
6264 "^.+\\ .(ts|tsx)$" : " ts-jest"
6365 },
64- "moduleFileExtensions" : [" js" , " ts" ]
66+ "moduleFileExtensions" : [
67+ " js" ,
68+ " ts"
69+ ]
6570 },
6671 "husky" : {
6772 "hooks" : {
Original file line number Diff line number Diff line change 1+ import * as commandExists from 'command-exists' ;
2+
13test ( 'environment variable was set correctly' , ( ) => {
24 const token = process . env . FIREBASE_TOKEN ;
35
46 expect ( token ) . not . toBeUndefined ( ) ;
57 expect ( token ) . not . toBeNull ( ) ;
68 expect ( token ) . toBe ( 'banana' ) ;
79} ) ;
10+
11+ test ( 'firebase tools cli is installed' , ( ) => {
12+ commandExists ( 'firebase' , ( error , exists ) => {
13+ expect ( error ) . toBeNull ( ) ;
14+ expect ( exists ) . toBe ( true ) ;
15+ } ) ;
16+ } ) ;
Original file line number Diff line number Diff line change 557557 resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
558558 integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==
559559
560+ " @types/command-exists@^1.2.0 " :
561+ version "1.2.0"
562+ resolved "https://registry.yarnpkg.com/@types/command-exists/-/command-exists-1.2.0.tgz#d97e0ed10097090e4ab0367ed425b0312fad86f3"
563+ integrity sha512-ugsxEJfsCuqMLSuCD4PIJkp5Uk2z6TCMRCgYVuhRo5cYQY3+1xXTQkSlPtkpGHuvWMjS2KTeVQXxkXRACMbM6A==
564+
560565" @types/eslint-visitor-keys@^1.0.0 " :
561566 version "1.0.0"
562567 resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d"
596601 dependencies :
597602 " @types/istanbul-lib-report" " *"
598603
599- " @types/jest@26.x " , "@types/jest@^ 26.0.13 ":
604+ " @types/jest@26.0.13 " , "@types/jest@26.x ":
600605 version "26.0.13"
601606 resolved "https://registry.yarnpkg.com/@types/jest/-/jest-26.0.13.tgz#5a7b9d5312f5dd521a38329c38ee9d3802a0b85e"
602607 integrity sha512-sCzjKow4z9LILc6DhBvn5AkIfmQzDZkgtVVKmGwVrs5tuid38ws281D4l+7x1kP487+FlKDh5kfMZ8WSPAdmdA==
@@ -1319,6 +1324,11 @@ combined-stream@^1.0.6, combined-stream@~1.0.6:
13191324 dependencies :
13201325 delayed-stream "~1.0.0"
13211326
1327+ command-exists@^1.2.9 :
1328+ version "1.2.9"
1329+ resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69"
1330+ integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==
1331+
13221332commander@^6.0.0 :
13231333 version "6.1.0"
13241334 resolved "https://registry.yarnpkg.com/commander/-/commander-6.1.0.tgz#f8d722b78103141006b66f4c7ba1e97315ba75bc"
You can’t perform that action at this time.
0 commit comments