-
Notifications
You must be signed in to change notification settings - Fork 1
/
wallaby.conf.js
49 lines (44 loc) · 1.42 KB
/
wallaby.conf.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
// Copyright (c) Aigonix. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
module.exports = function (w) {
return {
files: [
'!dist',
'!**/dist',
'Source/**/*.ts',
{ pattern: 'Source/**/for_*/**/given/*.@(ts|js)', instrument: false },
'!Source/**/for_*/**/!(given)/*.ts',
'!Source/**/for_*/*.ts',
],
tests: [
'!dist',
'!**/dist',
'Source/**/for_*/*.ts',
'Source/**/for_*/**/!(given)/*.ts',
'!Source/**/for_*/given/*.ts',
'!Source/**/for_*/**/given/*.ts',
],
env: {
type: 'node'
},
compilers: {
'Source/**/*.ts?(x)': w.compilers.typeScript({
module: 'commonjs',
downlevelIteration: true,
experimentalDecorators: true,
jsx: "react",
esModuleInterop: true,
target: 'es6'
})
},
setup: (w) => {
global.expect = chai.expect;
const should = chai.should();
global.sinon = require('sinon');
const sinonChai = require('sinon-chai');
const chaiAsPromised = require('chai-as-promised');
chai.use(sinonChai);
chai.use(chaiAsPromised);
}
};
};