forked from cult-of-coders/meteor-mocha
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.js
executable file
·66 lines (53 loc) · 1.77 KB
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// Using the "wrapper package" version format
Package.describe({
name: "hubroedu:mocha",
summary:
"Write package tests with mocha and run them in the browser or from the command line with spacejam.",
git: "https://github.com/hubroedu/meteor-mocha",
version: "3.0.0",
testOnly: true
});
// This will remove 'Unable to resolve some modules' warnings. See https://goo.gl/YB44Km
Npm.depends({
diff: "1.4.0",
debug: "2.2.0",
glob: "3.2.3",
growl: "1.8.1",
util: "0.10.3",
events: "1.1.0",
assert: "1.3.0",
"escape-string-regexp": "1.0.2",
"supports-color": "1.2.0",
path: "0.12.7",
"meteor-node-stubs": "0.2.1",
underscore: "1.8.3"
});
Package.onUse(function(api) {
api.versionsFrom("1.3");
api.use("tmeasday:[email protected]");
api.use("reload");
api.use("ddp");
api.use("random");
api.use("mongo");
api.use("autoupdate");
api.use("ecmascript");
api.use("check");
// If we use a reactive reporter such as meteor's test-in-browser one,
// we'll need all of this.
api.use(["blaze", "templating", "spacebars", "tracker"], "client");
api.use(["practicalmeteor:[email protected]"]);
api.imply(["practicalmeteor:[email protected]"]);
// So meteor-web-driver will be available from the command line
// api.imply(['practicalmeteor:[email protected]']);
// Uncomment once we upgrade to loglevel v2
//api.addFiles('src/lib/log.js');
api.addFiles(["meteor/src/server/autoupdate.js"], "server");
api.addFiles(["meteor/src/client/mocha.html", "mocha.css"], "client");
api.mainModule("meteor/src/index.js");
api.export("runTests");
});
Package.onTest(function(api) {
api.use(["ecmascript", "tinytest"]);
api.addFiles("meteor/tests/mocha-globals-test.js");
api.addFiles("meteor/tests/mocha-import-test.js");
});