File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " pythagora" ,
3
- "version" : " 0.0.58 " ,
3
+ "version" : " 0.0.59 " ,
4
4
"author" : {
5
5
"name" : " Zvonimir Sabljic" ,
6
6
Original file line number Diff line number Diff line change @@ -100,18 +100,18 @@ async function getJestTest(test) {
100
100
return await makeRequest ( JSON . stringify ( test ) , options ) ;
101
101
}
102
102
103
- async function getJestTestName ( jestTest , usedNames ) {
103
+ async function getJestTestName ( test , usedNames ) {
104
104
let options = setOptions ( { path :'/api/generate-jest-test-name' } ) ;
105
- return await makeRequest ( JSON . stringify ( { test : jestTest } ) , options ) ;
105
+ return await makeRequest ( JSON . stringify ( { test } ) , options ) ;
106
106
}
107
107
108
- async function isEligibleForExport ( jestTest ) {
108
+ async function isEligibleForExport ( test ) {
109
109
try {
110
110
let options = setOptions ( { path : '/api/check-if-eligible' } ) ;
111
111
112
112
const response = await axios . post (
113
113
`${ options . protocol } ://${ options . hostname } ${ options . port ? ':' + options . port : '' } ${ options . path } ` ,
114
- JSON . stringify ( { jestTest } ) ,
114
+ JSON . stringify ( { test } ) ,
115
115
{ headers : options . headers }
116
116
) ;
117
117
Original file line number Diff line number Diff line change 1
1
const { loginRouteEnteredLog} = require ( "../utils/cmdPrint" ) ;
2
2
const { updateMetadata} = require ( "../utils/common" ) ;
3
+ const { setUpPythagoraDirs} = require ( "../helpers/starting" ) ;
3
4
const { METADATA_FILENAME , SRC_TO_ROOT } = require ( "../const/common" ) ;
4
5
// TODO make require path better!!
5
- let pythagoraMetadata = require ( `../${ SRC_TO_ROOT } .pythagora/${ METADATA_FILENAME } ` ) ;
6
6
const readline = require ( "readline" ) ;
7
7
const _ = require ( "lodash" ) ;
8
8
9
9
10
10
function askForLoginRoute ( rl ) {
11
- rl . question ( 'Please enter the endpoint path of the login route (eg. /api/auth/login): ' , loginPath => {
11
+ rl . question ( '\x1b[32m Please enter the endpoint path of the login route (eg. /api/auth/login): \x1b[0m ' , loginPath => {
12
12
loginRouteEnteredLog ( loginPath ) ;
13
13
14
14
rl . question ( 'Is this correct login endpoint path (Y/N): ' , answer => {
@@ -35,4 +35,6 @@ function addExportData() {
35
35
} , 500 ) ;
36
36
}
37
37
38
+ setUpPythagoraDirs ( ) ;
39
+ let pythagoraMetadata = require ( `../${ SRC_TO_ROOT } .pythagora/${ METADATA_FILENAME } ` ) ;
38
40
addExportData ( ) ;
You can’t perform that action at this time.
0 commit comments