set REACT_APP _API_ENDPOINT and _AUTHENTICATION_URL as props #4345
ci-cd.yml
on: pull_request
deploy-branch
/
setup-environment
1s
deploy-main
/
setup-environment
deploy-tag
/
setup-environment
deploy-branch
/
build-deploy
3m 44s
deploy-main
/
build-deploy
deploy-tag
/
build-deploy
Annotations
21 errors and 4 warnings
lint:
src/PyodideWorker.js#L7
Delete `,`
|
lint:
src/PyodideWorker.js#L32
Delete `,`
|
lint:
src/PyodideWorker.js#L92
Delete `,`
|
lint:
src/PyodideWorker.js#L165
Delete `,`
|
lint:
src/PyodideWorker.js#L173
Delete `,`
|
|
|
|
|
|
test:
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)
|
test:
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)
|
test:
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)
|
test:
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)
|
test:
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)
|
test:
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)
|
test:
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)
|
test:
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)
|
test:
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)
|
test:
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)
|
test-cypress
Cypress tests: 12 failed
|
lint:
src/redux/EditorSlice.test.js#L12
'loadProjectList' is defined but never used
|
lint:
src/redux/EditorSlice.test.js#L27
'readProjectList' is assigned a value but never used
|
test-cypress
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/upload-artifact@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Deprecation notice: v1, v2, and v3 of the artifact actions
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/
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
cypress-artifacts
|
4.42 MB |
|