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 1.6.0.1 is available. Update this project with ‘meteor update’.
=> Started MongoDB.
mongo: updating npm dependencies – mongodb-uri…

minifier-js: updating npm dependencies – uglify-es…
e[91m/root/.meteor/packages/urigo_static-templates/.0.1.3.12g4dz9.ffq3++os+web.browser+web.cordova/plugin.compileStaticTemplate.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165
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

[SOLVED]
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…