cypress-ct-octane-js 0.1.31 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2,6 +2,10 @@ import { getContainerEl, setupHooks } from "@cypress/mount-utils";
|
|
|
2
2
|
import { createRoot } from "octane";
|
|
3
3
|
let dispose;
|
|
4
4
|
function cleanup() {
|
|
5
|
+
Cypress.log({
|
|
6
|
+
name: "unmount",
|
|
7
|
+
message: "Unmounted component",
|
|
8
|
+
});
|
|
5
9
|
dispose === null || dispose === void 0 ? void 0 : dispose();
|
|
6
10
|
}
|
|
7
11
|
export function mount(component, options = {}) {
|
|
@@ -9,6 +13,7 @@ export function mount(component, options = {}) {
|
|
|
9
13
|
if (!container) {
|
|
10
14
|
throw new Error("'root' element not found");
|
|
11
15
|
}
|
|
16
|
+
console.log(container.innerHTML);
|
|
12
17
|
const root = createRoot(container);
|
|
13
18
|
dispose = root.unmount;
|
|
14
19
|
root.render(component);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cypress-ct-octane-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"description": "Octane framework definition and mount adapter for Cypress component testing",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"octane",
|
|
7
6
|
"cypress",
|
|
7
|
+
"octane",
|
|
8
8
|
"testing"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|