npm package diff

Package: @forge/react

Versions: 10.9.0-next.0 - 10.9.0-next.1

File: package/out/__test__/createFrame.test.js

Index: package/out/__test__/createFrame.test.js
===================================================================
--- package/out/__test__/createFrame.test.js
+++ package/out/__test__/createFrame.test.js
@@ -1,33 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-const tslib_1 = require("tslib");
-const jsx_runtime_1 = require("react/jsx-runtime");
-jest.mock('@forge/bridge', () => ({
-    events: {
-        emit: jest.fn(),
-        on: jest.fn()
-    }
-}));
-const react_1 = tslib_1.__importDefault(require("react"));
-const components_1 = require("../components");
-const reconcilerTestRenderer_1 = tslib_1.__importDefault(require("./reconcilerTestRenderer"));
-const testUtils_1 = require("./testUtils");
-describe('createFrame', () => {
-    let bridgeCalls = [];
-    beforeAll(async () => {
-        bridgeCalls = (0, testUtils_1.setupBridge)();
-    });
-    it('renders correct Frame ForgeDoc', async () => {
-        const TestFrame = (0, components_1.createFrame)('test-frame');
-        const Test = () => {
-            return ((0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)(TestFrame, { propA: "hello" }) }));
-        };
-        await reconcilerTestRenderer_1.default.create((0, jsx_runtime_1.jsx)(Test, {}));
-        const forgeDoc = (0, testUtils_1.getLastBridgeCallForgeDoc)(bridgeCalls);
-        expect(forgeDoc).toHaveProperty('type', 'Root');
-        expect(forgeDoc).toHaveProperty('children[0].type', 'Frame');
-        expect(forgeDoc).toHaveProperty('children[0].props.resource', 'test-frame');
-        expect(forgeDoc).toHaveProperty('children[0].props.frameId', expect.any(String));
-        expect(forgeDoc).not.toHaveProperty('children[0].props.propA', expect.any(String));
-    });
-});