-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathdb_test_err.txt
More file actions
151 lines (136 loc) · 5.77 KB
/
db_test_err.txt
File metadata and controls
151 lines (136 loc) · 5.77 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
node :
ts-jest[config]
(WARN)
[94mmessage[0m[90m
TS151002: [0mUsing
hybrid module kind
(Node16/18/Next) is
only supported in
"isolatedModules:
true". Please set
"isolatedModules:
true" in your
tsconfig.json. To
disable this message,
you can set "diagnosti
cs.ignoreCodes" to
include 151002 in
your ts-jest config.
See more at https://ku
lshekhar.github.io/ts-
jest/docs/getting-star
ted/options/diagnostic
s
At line:1 char:1
+ node --experimental-
vm-modules node_module
s/jest/bin/jest.js
src/__te ...
+ ~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~
~~~~~
+ CategoryInfo
: NotSpeci
fied: (ts-jest[co
nfig]...ons/diagn
ostics:String) []
, RemoteException
+ FullyQualifiedE
rrorId : NativeCo
mmandError
FAIL src/__tests__/db.
test.ts
ΓùÅ Test suite
failed to run
[96msrc/__tests__
/db.test.ts[0m:[93m7
0[0m:[93m37[0m -
[91merror[0m[90m
TS2345: [0mArgument
of type '{ rowCount:
number; }' is not
assignable to
parameter of type
'never'.
[7m70[0m moc
kQuery.mockResolvedVal
ueOnce({ rowCount: 1
});
[7m [0m [91m
~~~~~~~~~~~~~~~[0m
[96msrc/__tests__
/db.test.ts[0m:[93m8
5[0m:[93m37[0m -
[91merror[0m[90m
TS2345: [0mArgument
of type 'Error' is
not assignable to
parameter of type
'never'.
[7m85[0m moc
kQuery.mockRejectedVal
ueOnce(new
Error("Connection
completely failed"));
[7m [0m [91m
~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~[0m
[96msrc/__tests__
/db.test.ts[0m:[93m1
02[0m:[93m37[0m -
[91merror[0m[90m
TS2345: [0mArgument
of type '{ rowCount:
number; rows:
never[]; }' is not
assignable to
parameter of type
'never'.
[7m102[0m mo
ckQuery.mockResolvedVa
lueOnce({ rowCount:
5, rows: [] });
[7m [0m [91m
~~~~~~~~~
~~~~~~~~~~~~~~~~[0m
[96msrc/__tests__
/db.test.ts[0m:[93m1
19[0m:[93m37[0m -
[91merror[0m[90m
TS2345: [0mArgument
of type 'Error' is
not assignable to
parameter of type
'never'.
[7m119[0m mo
ckQuery.mockRejectedVa
lueOnce(new
Error("Syntax
error"));
[7m [0m [91m
~~~~~~~~~
~~~~~~~~~~~~~~~~[0m
[96msrc/__tests__
/db.test.ts[0m:[93m1
38[0m:[93m35[0m -
[91merror[0m[90m
TS2345: [0mArgument
of type 'undefined'
is not assignable to
parameter of type
'never'.
[7m138[0m mo
ckEnd.mockResolvedValu
eOnce(undefined);
[7m [0m [91m
~~~~~~~~~[0m
Test Suites: 1
failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 3.929 s
Ran all test suites
matching /src\\__tests
__\\db.test.ts/i.