set REACT_APP _API_ENDPOINT and _AUTHENTICATION_URL as props #4345
Annotations
10 errors and 1 warning
Run tests:
src/hooks/useProject.test.js#L108
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
"accessToken": "my_access_token",
"identifier": "my-favourite-project",
"locale": "ja-JP",
+ "reactAppApiEndpoint": null,
},
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
at toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/hooks/useProject.test.js:108:27)
at callback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/config.js:47:12)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:127:76)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:121:16)
at Timeout.task [as _onTimeout] (/home/runner/work/editor-ui/editor-ui/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
|
Run tests:
src/hooks/useProject.test.js#L130
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
"accessToken": "my_access_token",
"identifier": "my-favourite-project",
"locale": "ja-JP",
+ "reactAppApiEndpoint": null,
},
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
at toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/hooks/useProject.test.js:130:27)
at callback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/config.js:47:12)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:127:76)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:121:16)
at Timeout.task [as _onTimeout] (/home/runner/work/editor-ui/editor-ui/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
|
Run tests:
src/hooks/useProject.test.js#L147
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
"accessToken": "my_access_token",
"identifier": "hello-world-project",
"locale": "ja-JP",
+ "reactAppApiEndpoint": null,
},
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
at toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/hooks/useProject.test.js:147:27)
at callback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/config.js:47:12)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:127:76)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:121:16)
at Timeout.task [as _onTimeout] (/home/runner/work/editor-ui/editor-ui/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
|
Run tests:
src/hooks/useProject.test.js#L213
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
"accessToken": "my_access_token",
"identifier": "my-favourite-project",
+ "reactAppApiEndpoint": null,
},
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
at toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/hooks/useProject.test.js:213:27)
at callback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/config.js:47:12)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:127:76)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:121:16)
at Timeout.task [as _onTimeout] (/home/runner/work/editor-ui/editor-ui/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
|
Run tests:
src/hooks/useProject.test.js#L234
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
"accessToken": "my_access_token",
"identifier": "my-favourite-project",
"locale": "ja-JP",
+ "reactAppApiEndpoint": null,
},
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
at toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/hooks/useProject.test.js:234:27)
at callback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/config.js:47:12)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:127:76)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:121:16)
at Timeout.task [as _onTimeout] (/home/runner/work/editor-ui/editor-ui/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
|
Run tests:
src/hooks/useProject.test.js#L251
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
"accessToken": "my_access_token",
"assetsOnly": true,
"identifier": "hello-world-project",
"locale": "ja-JP",
+ "reactAppApiEndpoint": null,
},
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
at toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/hooks/useProject.test.js:251:27)
at callback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/config.js:47:12)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:127:76)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:121:16)
at Timeout.task [as _onTimeout] (/home/runner/work/editor-ui/editor-ui/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
|
Run tests:
src/hooks/useProject.test.js#L476
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
"accessToken": "my_access_token",
"identifier": "hello-world-project",
"locale": "ja-JP",
+ "reactAppApiEndpoint": null,
},
Number of calls: 1
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
at toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/hooks/useProject.test.js:476:27)
at callback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/config.js:47:12)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:127:76)
at checkCallback (/home/runner/work/editor-ui/editor-ui/node_modules/@testing-library/dom/dist/wait-for.js:121:16)
at Timeout.task [as _onTimeout] (/home/runner/work/editor-ui/editor-ui/node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
|
Run tests:
src/utils/apiCallHandler.test.js#L44
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
- "undefined/api/projects",
+ "TODORAAE/api/projects",
{"project": {"components": [], "name": "Untitled", "project_type": "python"}},
{"headers": {"Accept": "application/json"}},
Number of calls: 1
at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/utils/apiCallHandler.test.js:44:24)
|
Run tests:
src/utils/apiCallHandler.test.js#L76
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
- "undefined/api/projects/original-hello-project/remix",
+ "TODORAAE/api/projects/original-hello-project/remix",
{"project": {"identifier": "original-hello-project", "project_type": "python"}},
{"headers": {"Accept": "application/json", "Authorization": "39a09671-be55-4847-baf5-8919a0c24a25"}},
Number of calls: 1
at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/utils/apiCallHandler.test.js:76:24)
|
Run tests:
src/utils/apiCallHandler.test.js#L97
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
- "undefined/api/projects/my-wonderful-project",
+ "TODORAAE/api/projects/my-wonderful-project",
{"project": {"components": [], "identifier": "my-wonderful-project", "project_type": "python"}},
{"headers": {"Accept": "application/json"}},
Number of calls: 1
at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/utils/apiCallHandler.test.js:97:23)
|
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: "cypress-artifacts".
Please update your workflow to use v4 of the artifact actions.
Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
|
Loading