This repository was archived by the owner on Apr 19, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +596
-0
lines changed Expand file tree Collapse file tree 5 files changed +596
-0
lines changed Original file line number Diff line number Diff line change
1
+ const perfHooks = jest . genMockFromModule ( 'perf_hooks' )
2
+
3
+ perfHooks . performance . now = jest . fn ( ) . mockImplementation ( ( ) => 0 )
4
+
5
+ module . exports = perfHooks
Original file line number Diff line number Diff line change
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports [` methods records 1` ] = `
4
+ Array [
5
+ Object {
6
+ " appliedat" : 2020 - 01 - 01T00 :00 :00 .000Z ,
7
+ " appliedby" : " Synor" ,
8
+ " dirty" : false ,
9
+ " executiontime" : 0 ,
10
+ " hash" : " " ,
11
+ " id" : 1 ,
12
+ " title" : " Base Migration" ,
13
+ " type" : " do" ,
14
+ " version" : " 0" ,
15
+ } ,
16
+ Object {
17
+ " appliedat" : 2020 - 01 - 01T00 :00 :00 .000Z ,
18
+ " appliedby" : " Jest" ,
19
+ " dirty" : false ,
20
+ " executiontime" : 0 ,
21
+ " hash" : " hash-01-do" ,
22
+ " id" : 2 ,
23
+ " title" : " Test One" ,
24
+ " type" : " do" ,
25
+ " version" : " 01" ,
26
+ } ,
27
+ Object {
28
+ " appliedat" : 2020 - 01 - 01T00 :00 :00 .000Z ,
29
+ " appliedby" : " Jest" ,
30
+ " dirty" : true ,
31
+ " executiontime" : 0 ,
32
+ " hash" : " hash-01-undo" ,
33
+ " id" : 3 ,
34
+ " title" : " Test One" ,
35
+ " type" : " undo" ,
36
+ " version" : " 01" ,
37
+ } ,
38
+ ]
39
+ ` ;
40
+
41
+ exports [` methods repair 1` ] = `
42
+ Array [
43
+ Object {
44
+ " applied_at" : 2020 - 01 - 01T00 :00 :00 .000Z ,
45
+ " applied_by" : " Synor" ,
46
+ " dirty" : false ,
47
+ " execution_time" : 0 ,
48
+ " hash" : " " ,
49
+ " id" : 1 ,
50
+ " title" : " Base Migration" ,
51
+ " type" : " do" ,
52
+ " version" : " 0" ,
53
+ } ,
54
+ Object {
55
+ " applied_at" : 2020 - 01 - 01T00 :00 :00 .000Z ,
56
+ " applied_by" : " Jest" ,
57
+ " dirty" : false ,
58
+ " execution_time" : 0 ,
59
+ " hash" : " hash-01-do-repaired" ,
60
+ " id" : 2 ,
61
+ " title" : " Test One" ,
62
+ " type" : " do" ,
63
+ " version" : " 01" ,
64
+ } ,
65
+ ]
66
+ ` ;
67
+
68
+ exports [` methods run 1` ] = `
69
+ Array [
70
+ Object {
71
+ " applied_at" : 2020 - 01 - 01T00 :00 :00 .000Z ,
72
+ " applied_by" : " Synor" ,
73
+ " dirty" : false ,
74
+ " execution_time" : 0 ,
75
+ " hash" : " " ,
76
+ " id" : 1 ,
77
+ " title" : " Base Migration" ,
78
+ " type" : " do" ,
79
+ " version" : " 0" ,
80
+ } ,
81
+ Object {
82
+ " applied_at" : 2020 - 01 - 01T00 :00 :00 .000Z ,
83
+ " applied_by" : " Jest" ,
84
+ " dirty" : false ,
85
+ " execution_time" : 0 ,
86
+ " hash" : " hash-01-do" ,
87
+ " id" : 2 ,
88
+ " title" : " Test One" ,
89
+ " type" : " do" ,
90
+ " version" : " 01" ,
91
+ } ,
92
+ Object {
93
+ " applied_at" : 2020 - 01 - 01T00 :00 :00 .000Z ,
94
+ " applied_by" : " Jest" ,
95
+ " dirty" : true ,
96
+ " execution_time" : 0 ,
97
+ " hash" : " hash-01-undo" ,
98
+ " id" : 3 ,
99
+ " title" : " Test One" ,
100
+ " type" : " undo" ,
101
+ " version" : " 01" ,
102
+ } ,
103
+ ]
104
+ ` ;
You can’t perform that action at this time.
0 commit comments