While running the yarn db-import-tests:dev step in the local database setup instructions from a fresh clone, I was getting the following error.
commands.json for v2 test format may not exist
Error found: Error: ENOENT: no such file or directory, scandir '/Users/outofambit/src/meta-aria/aria-at-app/server/scripts/import-tests/tmp/build/tests'
at Object.readdirSync (node:fs:1527:3)
at buildTestsAndCreateTestPlanVersions (/Users/outofambit/src/meta-aria/aria-at-app/server/scripts/import-tests/index.js:118:31)
at async importTestPlanVersions (/Users/outofambit/src/meta-aria/aria-at-app/server/scripts/import-tests/index.js:80:7)
at async /Users/outofambit/src/meta-aria/aria-at-app/node_modules/sequelize/lib/sequelize.js:506:18
@howard-e and I tracked it down to being an issue with a dependency of cross-var, which is effectively unmaintained and uses a very old set of babel packages. We found a fork where someone had fixed those issues and that fixed my error.
Preview Tests
While running the
yarn db-import-tests:dev
step in the local database setup instructions from a fresh clone, I was getting the following error.@howard-e and I tracked it down to being an issue with a dependency of
cross-var
, which is effectively unmaintained and uses a very old set of babel packages. We found a fork where someone had fixed those issues and that fixed my error.