You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test dir is trying to create a directory where file exists:
npm i pythagora
npx pythagora \
--unit-tests \
--path src/controllers/list.js \
--pythagora-api-server http://localhost:3000
Starting generation of unit tests...
node:internal/fs/utils:350
throw err;
^
Error: ENOTDIR: not a directory, mkdir '/Users/gardner/.nvm/versions/node/v18.18.0/bin/pythagora/pythagora_tests'
at Object.mkdirSync (node:fs:1398:3)
at /Users/gardner/.nvm/versions/node/v18.18.0/lib/node_modules/pythagora/src/helpers/starting.js:105:47
at Array.forEach (<anonymous>)
at setUpPythagoraDirs (/Users/gardner/.nvm/versions/node/v18.18.0/lib/node_modules/pythagora/src/helpers/starting.js:103:17)
at Object.<anonymous> (/Users/gardner/.nvm/versions/node/v18.18.0/lib/node_modules/pythagora/src/scripts/unit.js:10:1)
at Module._compile (node:internal/modules/cjs/loader:1256:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:86:12) {
errno: -20,
syscall: 'mkdir',
code: 'ENOTDIR',
path: '/Users/gardner/.nvm/versions/node/v18.18.0/bin/pythagora/pythagora_tests'
}
Node.js v18.18.0
Bash script exited with code 0
When we inspect the path:
ls -lah /Users/gardner/.nvm/versions/node/v18.18.0/bin/pythagora
lrwxr-xr-x 1 gardner staff 44B 3 Oct 12:13 /Users/gardner/.nvm/versions/node/v18.18.0/bin/pythagora -> ../lib/node_modules/pythagora/src/bin/run.js
The text was updated successfully, but these errors were encountered:
gardner
changed the title
Error: ENOTDIR: not a directory, mkdir '/Users/gardner/.nvm/versions/node/v18.18.0/bin/pythagora/pythagora_tests'
Error: ENOTDIR: not a directory, mkdir '~/.nvm/versions/node/v18.18.0/bin/pythagora/pythagora_tests'
Oct 2, 2023
gardner
changed the title
Error: ENOTDIR: not a directory, mkdir '~/.nvm/versions/node/v18.18.0/bin/pythagora/pythagora_tests'
EXPORTED_TESTS_DIR Error: ENOTDIR: not a directory, mkdir '~/.nvm/versions/node/v18.18.0/bin/pythagora/pythagora_tests'
Oct 2, 2023
The test dir is trying to create a directory where file exists:
When we inspect the path:
These appear to be consts defined in https://github.com/Pythagora-io/js-code-processing
How can we pass a value in for test directory?
The text was updated successfully, but these errors were encountered: