Meteor unit tests (in docker)

i’m trying to perform unit tests in my app inside a docker container :
meteor test-packages --once --driver-package meteortesting:mocha
log shows :
[[[[[ Tests ]]]]]

=> Started proxy.
=> Meteor is available. Update this project with ‘meteor update’.
=> Started MongoDB.
mongo: updating npm dependencies – mongodb-uri…

minifier-js: updating npm dependencies – uglify-es…
throw error;

Error: ENOENT: no such file or directory, open ‘/projects/myproj/node_modules/@uirouter/.meteor-last-rebuild-version.json’

my question is what are the dependencies of meteor if we want to run unit-tests? do we need a browser installed (mongo is there) ? the error does not point to any dependency missing but when i run it on the host machine on same project it works

Hi, any help on this? i even tested with 1.6.1 still same issue

meteor build tool tries to rename directory (in nod_modules) but since docker is layered does not allow renaming -> build toolchain falls back into copy (which is correct) but copy is not atomic like rename. seems some thread tries to access the file before it is there :slight_smile:
solution was to perform all steps in the same layer in docker and make sure nothing of that layer exists on the underlaying layers…