Tests: main #722
ci-tests.yml
on: push
Run Tests
3m 20s
Run Frontend Tests
43s
Annotations
6 errors
|
Run Frontend Tests
Process completed with exit code 1.
|
|
src/hooks/useCodeFetch.test.ts > useCodeFetch > fetchCode > fetches different libraries independently:
app/src/hooks/useCodeFetch.test.ts#L164
AssertionError: the given combination of arguments (null and string) is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a string
❯ src/hooks/useCodeFetch.test.ts:164:23
|
|
src/hooks/useCodeFetch.test.ts > useCodeFetch > fetchCode > returns cached result on second call without re-fetching:
app/src/hooks/useCodeFetch.test.ts#L77
AssertionError: expected null to be 'import matplotlib\nfig, ax = plt.subp…' // Object.is equality
- Expected:
"import matplotlib
fig, ax = plt.subplots()"
+ Received:
null
❯ src/hooks/useCodeFetch.test.ts:77:20
|
|
src/hooks/useCodeFetch.test.ts > useCodeFetch > fetchCode > fetches code from API and returns it:
app/src/hooks/useCodeFetch.test.ts#L58
AssertionError: expected null to be 'import matplotlib\nfig, ax = plt.subp…' // Object.is equality
- Expected:
"import matplotlib
fig, ax = plt.subplots()"
+ Received:
null
❯ src/hooks/useCodeFetch.test.ts:58:20
|
|
src/hooks/useCodeFetch.test.ts > useCodeFetch > getCode > returns cached code after successful fetch:
app/src/hooks/useCodeFetch.test.ts#L42
AssertionError: expected null to be 'import matplotlib\nfig, ax = plt.subp…' // Object.is equality
- Expected:
"import matplotlib
fig, ax = plt.subplots()"
+ Received:
null
❯ src/hooks/useCodeFetch.test.ts:42:69
|
|
src/components/Footer.test.tsx > Footer > calls onTrackEvent when clicking stats link:
app/src/components/Footer.test.tsx#L38
AssertionError: expected "vi.fn()" to be called with arguments: [ Array(2) ]
Received:
1st vi.fn() call:
[
- "external_link",
- ObjectContaining {
+ "internal_link",
+ {
"destination": "stats",
+ "library": undefined,
+ "spec": undefined,
},
]
Number of calls: 1
❯ src/components/Footer.test.tsx:38:26
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
coverage-report
|
8.22 KB |
sha256:130dd5135b58070de77874a1c507d99cf83f512a72de343bfc6df65d95a5a322
|
|