Open dcsan opened 9 years ago
small point is that one package which I am writing tests for, in turn uses another package, which uses the npm:hack. However, adding
api.use([
...
'meteorhacks:npm',
to BOTH packages in the hierarchy, i still can't solve the problem.
has anyone got this to work with tinytests, or am i wasting time here?
+1 I'm getting the same problem.
+1, same thing. Server only file, even tried wrapping like this:
Meteor.startup(function () {
var request = Meteor.npmRequire('request');
});
This IS in:
Package.on_test(function (api){
...
api.use('tinytest');
api.use('meteorhacks:npm');
...
});
packages.json
does not seem to be around anywhere (it's in the root of the main project, not in any package), and trying to add it as an asset with:
api.addFiles('packages.json', 'server', {
isAsset: true
});
doesn't help as the error message indicates that it can't find packages.json.
Help?
+1. Anybody have an update on this?
I have a package that uses this
in running it with tinytest, I got the errors below.
fwiw the app itself runs fine, its just trying to write/run tests which fails :/
The environment is identical for test and normal app execution (same Package.on_use code)
I checked another related thread about startup #59 but that doesn't seem relevant in this case.