File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -111,18 +111,18 @@ async function getJestTest(test) {
111
111
return await makeRequest ( JSON . stringify ( test ) , options ) ;
112
112
}
113
113
114
- async function getJestTestName ( jestTest , usedNames ) {
114
+ async function getJestTestName ( test , usedNames ) {
115
115
let options = setOptions ( { path :'/api/generate-jest-test-name' } ) ;
116
- return await makeRequest ( JSON . stringify ( { test : jestTest } ) , options ) ;
116
+ return await makeRequest ( JSON . stringify ( { test } ) , options ) ;
117
117
}
118
118
119
- async function isEligibleForExport ( jestTest ) {
119
+ async function isEligibleForExport ( test ) {
120
120
try {
121
121
let options = setOptions ( { path : '/api/check-if-eligible' } ) ;
122
122
123
123
const response = await axios . post (
124
124
`${ options . protocol } ://${ options . hostname } ${ options . port ? ':' + options . port : '' } ${ options . path } ` ,
125
- JSON . stringify ( { jestTest } ) ,
125
+ JSON . stringify ( { test } ) ,
126
126
{ headers : options . headers }
127
127
) ;
128
128
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