This repository has been archived by the owner on Aug 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathava.json
60 lines (60 loc) · 1.5 KB
/
ava.json
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
{
".source.js, .source.js.jsx, .source.jsx, .source.ts": {
"AVA": {
"prefix": "ava",
"body": "import test from 'ava';\nimport $1 from '$2';\n\ntest('${3:title}', t => {\n\tt.is($1(), '$4');\n});"
},
"Import AVA": {
"prefix": "import-ava",
"body": "import test from 'ava';\n"
},
"Test": {
"prefix": "test",
"body": "test('${1:title}', t => {\n\t$2\n});"
},
"Test - Async": {
"prefix": "test-async",
"body": "test('${1:title}', async t => {\n\t$2\n});"
},
"Test - Serial": {
"prefix": "test-serial",
"body": "test.serial('${1:title}', t => {\n\t$2\n});"
},
"Test - Callback": {
"prefix": "test-cb",
"body": "test.cb('${1:title}', t => {\n\t$2\n\tt.end()\n});"
},
"Test - Only": {
"prefix": "test-only",
"body": "test.only('${1:title}', t => {\n\t$2\n});"
},
"Test - Skip": {
"prefix": "test-skip",
"body": "test.skip('${1:title}', t => {\n\t$2\n});"
},
"Test - Todo": {
"prefix": "test-todo",
"body": "test.todo('${1:title}');"
},
"Test - Failing": {
"prefix": "test-failing",
"body": "test.failing('${1:title}', t => {\n\t$2\n});"
},
"Before hook": {
"prefix": "before-hook",
"body": "test.before(t => {\n\t$1\n});"
},
"After hook": {
"prefix": "after-hook",
"body": "test.after(t => {\n\t$1\n});"
},
"Before each hook": {
"prefix": "before-each-hook",
"body": "test.beforeEach(t => {\n\t$1\n});"
},
"After each hook": {
"prefix": "after-each-hook",
"body": "test.afterEach(t => {\n\t$1\n});"
}
}
}