forked from microsoft/axe-sarif-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwallaby.conf.js
33 lines (29 loc) · 997 Bytes
/
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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
module.exports = function() {
return {
files: [
'tsconfig.json',
'jest.config.js',
'src/**/*.ts',
{ pattern: 'src/**/*.test.ts', ignore: true },
],
tests: ['src/**/*.test.ts'],
env: {
type: 'node',
runner: 'node',
},
testFramework: 'jest',
setup: function(wallaby) {
const jestConfig = require('./jest.config.js');
// Wallaby uses its own typescript transformer and recommends
// disabling jest's to avoid double-compiling.
delete jestConfig.transform;
// It looks like wallaby doesn't support jest-circus yet, so
// falling back to the default runner.
jestConfig.testRunner = 'jasmine2';
wallaby.testFramework.configure(jestConfig);
},
};
};