[BREAKING CHANGE] feat: SSR, AppRoot: get rid of body classes mutations #5863
Annotations
10 errors
Report:
packages/vkui/src/components/AppRoot/AppRoot.test.tsx#L1
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -8,9 +8,15 @@
"disablePortal": false,
"embedded": false,
"keyboardInput": false,
"layout": undefined,
"mode": "full",
+ "popoutModalRoot": Object {
+ "current": null,
+ },
"portalRoot": Object {
"current": null,
},
+ "safeAreaInsets": undefined,
+ "setPortalRoot": [Function setPortalRoot],
+ "userSelectMode": undefined,
},
Number of calls: 1
at Object.toHaveBeenCalledWith (/home/runner/work/VKUI/VKUI/packages/vkui/src/components/AppRoot/AppRoot.test.tsx:80:29)
at Promise.then.completed (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/testWorker.js:106:12)
|
Report:
packages/vkui/src/components/AppRoot/AppRoot.test.tsx#L1
Error: expect(element).toContainElement(element)
<body style="" /> does not contain: null
at toContainElement (/home/runner/work/VKUI/VKUI/packages/vkui/src/components/AppRoot/AppRoot.test.tsx:181:31)
at Object.<anonymous> (/home/runner/work/VKUI/VKUI/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/testWorker.js:106:12)
|
Report:
packages/vkui/src/components/AppRoot/AppRoot.test.tsx#L1
Error: expect(element).toContainElement(element)
<body style="" /> does not contain: null
at toContainElement (/home/runner/work/VKUI/VKUI/packages/vkui/src/components/AppRoot/AppRoot.test.tsx:181:31)
at Object.<anonymous> (/home/runner/work/VKUI/VKUI/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/testWorker.js:106:12)
|
Report:
packages/vkui/src/components/AppRoot/AppRoot.test.tsx#L1
Error: expect(element).toContainElement(element)
<body style="" /> does not contain: null
at Object.toContainElement (/home/runner/work/VKUI/VKUI/packages/vkui/src/components/AppRoot/AppRoot.test.tsx:223:29)
at Promise.then.completed (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/testWorker.js:106:12)
|
Report:
packages/vkui/src/components/AppRoot/AppRoot.test.tsx#L1
Error: expect(element).toHaveClass("vkui")
Expected the element to have class:
vkui
Received:
at Object.toHaveClass (/home/runner/work/VKUI/VKUI/packages/vkui/src/components/AppRoot/AppRoot.test.tsx:245:40)
at Promise.then.completed (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/testWorker.js:106:12)
|
Report:
packages/vkui/src/components/AppRoot/AppRoot.test.tsx#L1
Error: expect(element).toHaveClass("vkui__root--embedded")
Expected the element to have class:
vkui__root--embedded
Received:
at Object.toHaveClass (/home/runner/work/VKUI/VKUI/packages/vkui/src/components/AppRoot/AppRoot.test.tsx:259:29)
at Promise.then.completed (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/testWorker.js:106:12)
|
Report:
packages/vkui/src/components/AppRoot/AppRoot.test.tsx#L1
Error: expect(element).toHaveClass("vkui--sizeX-regular")
Expected the element to have class:
vkui--sizeX-regular
Received:
at toHaveClass (/home/runner/work/VKUI/VKUI/packages/vkui/src/components/AppRoot/AppRoot.test.tsx:273:29)
at Object.<anonymous> (/home/runner/work/VKUI/VKUI/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/testWorker.js:106:12)
|
Report:
packages/vkui/src/components/AppRoot/AppRoot.test.tsx#L1
Error: expect(element).toHaveClass("vkui--sizeX-regular")
Expected the element to have class:
vkui--sizeX-regular
Received:
at toHaveClass (/home/runner/work/VKUI/VKUI/packages/vkui/src/components/AppRoot/AppRoot.test.tsx:273:29)
at Object.<anonymous> (/home/runner/work/VKUI/VKUI/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/testWorker.js:106:12)
|
Report:
packages/vkui/src/components/AppRoot/AppRoot.test.tsx#L1
Error: expect(element).toHaveStyle()
- Expected
- --vkui_internal--safe_area_inset_top: 0px;
at toHaveStyle (/home/runner/work/VKUI/VKUI/packages/vkui/src/components/AppRoot/AppRoot.test.tsx:287:29)
at Object.<anonymous> (/home/runner/work/VKUI/VKUI/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/testWorker.js:106:12)
|
Report:
packages/vkui/src/components/AppRoot/AppRoot.test.tsx#L1
Error: expect(element).toHaveStyle()
- Expected
- --vkui_internal--safe_area_inset_top: 0px;
at toHaveStyle (/home/runner/work/VKUI/VKUI/packages/vkui/src/components/AppRoot/AppRoot.test.tsx:287:29)
at Object.<anonymous> (/home/runner/work/VKUI/VKUI/node_modules/jest-each/build/bind.js:81:13)
at Promise.then.completed (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:316:40)
at _runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at _runTestsForDescribeBlock (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/VKUI/VKUI/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/VKUI/VKUI/node_modules/jest-runner/build/testWorker.js:106:12)
|
Loading