generated from dolittle/GitHub-Actions.TypeScript.Template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwallaby.conf.js
20 lines (19 loc) · 922 Bytes
/
wallaby.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*---------------------------------------------------------------------------------------------
* Copyright (c) Dolittle. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
const build = require('@dolittle/typescript.build');
module.exports = build.wallaby({
settingsCallback: (w, settings) => {
settings.files = settings.files.map((_) => {
_.pattern = _.pattern.replace('@(ts|js)', 'ts');
if (_.pattern.startsWith('/')) _.pattern = _.pattern.substr(1);
return _;
});
settings.tests = settings.tests.map((_) => {
_.pattern = _.pattern.replace('@(ts|js)', 'ts');
if (_.pattern.startsWith('/')) _.pattern = _.pattern.substr(1);
return _;
});
},
});