-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathwallaby.js
77 lines (65 loc) · 2.98 KB
/
wallaby.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
67
68
69
70
71
72
73
74
75
76
77
module.exports = function (w) {
console.log(w);
return {
files: [
{ pattern: 'dist-bower/csWeb-dep.js', instrument: false },
{ pattern: 'test/bower_components/angularUtils-pagination/dirPagination.js', instrument: false },
{ pattern: 'dist-bower/csComp.js', instrument: true },
{ pattern: 'test/csComp/app.js', instrument: false },
{ pattern: 'dist-bower/csTemplates.js', instrument: true },
{ pattern: 'test/bower_components/angular-mocks/angular-mocks.js', instrument: false },
{ pattern: 'out/test/csComp/mock/**/*.js', instrument: true }
],
tests: [
'test/csComp/spec/**/*.ts'
],
debug: true,
// env: {
// type: 'node'
// },
compilers: {
'test/**/*.ts': w.compilers.typeScript({
target: 1, // ES5
module: 1, // CommonJS
declaration: false,
noImplicitAny: false,
removeComments: true,
noLib: false,
preserveConstEnums: true,
suppressImplicitAnyIndexErrors: true
})
}//,
// bootstrap: function (w) {
// if (!Function.prototype.bind) {
// Function.prototype.bind = function (oThis) {
// if (typeof this !== 'function') {
// // closest thing possible to the ECMAScript 5
// // internal IsCallable function
// throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
// }
// var aArgs = Array.prototype.slice.call(arguments, 1),
// fToBind = this,
// fNOP = function () { },
// fBound = function () {
// return fToBind.apply(this instanceof fNOP && oThis
// ? this
// : oThis,
// aArgs.concat(Array.prototype.slice.call(arguments)));
// };
// // test this.prototype in case of native functions binding:
// if (this.prototype)
// fNOP.prototype = this.prototype;
// fBound.prototype = new fNOP();
// return fBound;
// };
// }
// }
// TypeScript compiler is on by default with default options,
// you can configure built-in compiler by passing options to it
// See interface CompilerOptions in
// https://github.com/Microsoft/TypeScript/blob/master/src/compiler/types.ts
//compilers: {
// '**/*.ts': w.compilers.typeScript({})
//}
};
};