Check loadRemixDisabled #4451
ci-cd.yml
on: pull_request
deploy-branch
/
setup-environment
0s
deploy-main
/
setup-environment
deploy-tag
/
setup-environment
deploy-branch
/
build-deploy
1m 26s
deploy-main
/
build-deploy
deploy-tag
/
build-deploy
Annotations
5 errors and 1 warning
test:
src/hooks/useProjectPersistence.test.js#L244
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: {"accessToken": "myAccessToken2", "identifier": "hello-world-project"}
Number of calls: 0
at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/hooks/useProjectPersistence.test.js:244:35)
|
test:
src/containers/WebComponentLoader.test.js#L199
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: {"hasShownSavePrompt": true, "justLoaded": false, "project": {"components": []}, "reactAppApiEndpoint": "http://localhost:3009", "saveTriggered": false, "user": null}
Received
1
@@ -1,8 +1,9 @@
Object {
"hasShownSavePrompt": true,
"justLoaded": false,
+ "loadRemix": false,
"project": Object {
"components": Array [],
},
"reactAppApiEndpoint": "http://localhost:3009",
"saveTriggered": false,,
2
@@ -1,8 +1,9 @@
Object {
"hasShownSavePrompt": true,
"justLoaded": false,
+ "loadRemix": false,
"project": Object {
"components": Array [],
},
"reactAppApiEndpoint": "http://localhost:3009",
"saveTriggered": false,,
Number of calls: 2
at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/containers/WebComponentLoader.test.js:199:37)
at Promise.then.completed (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)
at runTestInternal (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/testWorker.js:106:12)
|
test:
src/containers/WebComponentLoader.test.js#L337
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: {"hasShownSavePrompt": true, "justLoaded": false, "project": {"components": []}, "reactAppApiEndpoint": "http://localhost:3009", "saveTriggered": false, "user": {"access_token": "my_token"}}
Received
1
@@ -1,8 +1,9 @@
Object {
"hasShownSavePrompt": true,
"justLoaded": false,
+ "loadRemix": true,
"project": Object {
"components": Array [],
},
"reactAppApiEndpoint": "http://localhost:3009",
"saveTriggered": false,,
2
@@ -1,8 +1,9 @@
Object {
"hasShownSavePrompt": true,
"justLoaded": false,
+ "loadRemix": true,
"project": Object {
"components": Array [],
},
"reactAppApiEndpoint": "http://localhost:3009",
"saveTriggered": false,,
3
@@ -1,8 +1,9 @@
Object {
"hasShownSavePrompt": true,
"justLoaded": false,
+ "loadRemix": true,
"project": Object {
"components": Array [],
},
"reactAppApiEndpoint": "http://localhost:3009",
"saveTriggered": false,,
Number of calls: 3
at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/containers/WebComponentLoader.test.js:337:37)
at Promise.then.completed (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)
at runTestInternal (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/testWorker.js:106:12)
|
test:
src/containers/WebComponentLoader.test.js#L495
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: {"hasShownSavePrompt": true, "justLoaded": false, "project": {"components": []}, "reactAppApiEndpoint": "http://localhost:3009", "saveTriggered": false, "user": {"access_token": "my_token"}}
Received
1
@@ -1,8 +1,9 @@
Object {
"hasShownSavePrompt": true,
"justLoaded": false,
+ "loadRemix": true,
"project": Object {
"components": Array [],
},
"reactAppApiEndpoint": "http://localhost:3009",
"saveTriggered": false,,
2
@@ -1,8 +1,9 @@
Object {
"hasShownSavePrompt": true,
"justLoaded": false,
+ "loadRemix": true,
"project": Object {
"components": Array [],
},
"reactAppApiEndpoint": "http://localhost:3009",
"saveTriggered": false,,
Number of calls: 2
at Object.toHaveBeenCalledWith (/home/runner/work/editor-ui/editor-ui/src/containers/WebComponentLoader.test.js:495:39)
at Promise.then.completed (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/editor-ui/editor-ui/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:74:19)
at runTestInternal (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/editor-ui/editor-ui/node_modules/jest-runner/build/testWorker.js:106:12)
|
test
Process completed with exit code 1.
|
lint:
src/hooks/useProjectPersistence.js#L75
React Hook useEffect has a missing dependency: 'loadRemix'. Either include it or remove the dependency array
|