-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathava.config.js
47 lines (45 loc) · 1.3 KB
/
ava.config.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
"use strict";
// run AVA
// npx ava --match='*foo'
// ./node_modules/.bin/ava --match='*foo'
// see https://github.com/avajs/ava/blob/main/docs/05-command-line.md
// https://github.com/avajs/ava/blob/main/docs/06-configuration.md
module.exports = {
// https://github.com/avajs/ava/blob/main/docs/recipes/typescript.md
extensions: {
// https://github.com/avajs/ava/blob/main/docs/06-configuration.md#configuring-module-formats
js: true,
ts: 'commonjs',
},
// extensions: ['.js', '.ts'],
require: [
'@babel/register',
],
files: [
'./test/**/*',
],
watchMode: {
ignoreChanges: [
//
// some files and directories are ignored by default,
// see https://github.com/avajs/ava/blob/main/docs/recipes/watch-mode.md#ignoring-changes
//
// note:
// AVA dependency tracking (https://github.com/avajs/ava/blob/main/docs/recipes/watch-mode.md#dependency-tracking)
// currently does not seem to work. However, since AVA v6 it should work.
// See
// https://github.com/avajs/ava/issues/2388
// https://github.com/avajs/ava/pull/3123
// https://github.com/avajs/ava/issues/2905
//
// use the following to debug:
// DEBUG=ava:watcher npx ava --watch
// or
// DEBUG=ava:* npx ava --watch
//
'./.idea/',
'./temp/',
'./dist/',
],
},
};