cold-author-79999
12/24/2022, 7:52 PMcold-author-79999
12/24/2022, 7:54 PMnice-lifeguard-81070
12/26/2022, 6:18 AM"@cypress/code-coverage": "^3.10.0",
"vite-plugin-istanbul": "^3.0.4",
Here's my nuxt.config.ts after installing the vite-plugin-Istanbul package:
vite: {
vue: {
template: {
transformAssetUrls: true
}
},
plugins: [
istanbul({
exclude: ['node_modules', 'test/', 'coverage/'],
extension: [ '.js', '.ts', '.vue' ],
cypress: true
}),
]
},
Here is my cypress/support/e2e.ts file.
import '@cypress/code-coverage/support'
Here is my cypress.config.ts file.
import { defineConfig } from "cypress"
export default defineConfig({
projectId: "x83arq", // TODO: hide this
e2e: {
baseUrl: "http://localhost:3000",
setupNodeEvents(on, config) {
require("@cypress/code-coverage/task")(on, config)
return config
}
}
})
After running npm run dev, my UI interface crashed and was not getting complied properly. and an error message appears on the console, hydration node mismatch: - client vnode:
However, when I run npx Cypress open, it displays my Cypress code coverage report after the test is completed, but the main issue is that my UI is not functioning and is not being compiled properly.busy-tent-74516
12/26/2022, 8:16 AMdazzling-ram-59806
12/27/2022, 10:39 AMdazzling-ram-59806
12/27/2022, 10:52 AMastonishing-window-24437
12/27/2022, 11:58 AMrough-agent-43374
12/27/2022, 2:17 PMcold-author-79999
12/27/2022, 2:32 PMcold-author-79999
12/27/2022, 2:32 PMlate-planet-4481
12/27/2022, 3:16 PMbillowy-librarian-83114
12/27/2022, 10:34 PMbillowy-librarian-83114
12/27/2022, 10:34 PMearly-crowd-52815
12/28/2022, 1:37 AMMovies
or News
. I found one article online explaining that the 'scope' has changed. I see something similar in my case of scope being changed from 'top' to 'My Test'. If that's the real issue, is there a command in Cypress to change the context when searching for the element. I'm don't fully grok how the scopes work. Link to that article -> https://stackoverflow.com/questions/53418650/document-queryselectorall-returns-values-only-after-inspecting-domsswift-manchester-9192
12/28/2022, 10:22 AMhandsome-businessperson-71907
12/28/2022, 10:32 AMastonishing-window-24437
12/28/2022, 10:41 AMastonishing-window-24437
12/28/2022, 10:43 AMastonishing-window-24437
12/28/2022, 10:43 AMswift-manchester-9192
12/28/2022, 10:44 AMhandsome-businessperson-71907
12/28/2022, 10:44 AMhandsome-businessperson-71907
12/28/2022, 10:49 AMswift-manchester-9192
12/28/2022, 11:00 AMbusy-tent-74516
12/28/2022, 11:28 AMhandsome-lion-1748
12/28/2022, 12:13 PMhandsome-lion-1748
12/28/2022, 12:13 PMhandsome-lion-1748
12/28/2022, 12:14 PMhandsome-lion-1748
12/28/2022, 12:22 PMCypress.config('baseUrl', null);
and it seems to be working however I got a network error Error: Invalid protocol: subdomain.localhost:
handsome-lion-1748
12/28/2022, 12:23 PMhandsome-lion-1748
12/28/2022, 12:27 PM