Tests: feature/insights-pages #716
ci-tests.yml
on: push
Run Tests
2m 43s
Run Frontend Tests
42s
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.34 KB |
sha256:8d60b0a96294602147aa1f1a76422520d4e89c9852ddc1c4dd853df72bb9a853
|
|