@rimori/playwright-testing 0.3.28 → 0.3.29-next.1

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.
Files changed (25) hide show
  1. package/README.md +4 -4
  2. package/dist/core/MessageChannelSimulator.js +2 -2
  3. package/dist/core/RimoriTestEnvironment.d.ts +1 -1
  4. package/dist/core/RimoriTestEnvironment.js +3 -3
  5. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_client__loadShare__.mjs.js +5 -8
  6. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_rimori_mf_1_react_mf_2_client__loadShare__.mjs.js +51 -69
  7. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.mjs.js +1 -1
  8. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_dev_mf_2_runtime__loadShare__.mjs.js +1 -9
  9. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs.js +9 -25
  10. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__zod__loadShare__.mjs.js +1 -1
  11. package/dist/harness/hostInit.js +1 -1
  12. package/dist/harness/index.html +0 -1
  13. package/dist/harness/index.js +1 -1
  14. package/dist/harness/localSharedImportMap.js +1 -1
  15. package/dist/harness/preload-helper.js +1 -1
  16. package/dist/harness/remoteEntry.js +1 -7
  17. package/dist/harness/rolldown-runtime.js +1 -0
  18. package/dist/harness/virtualExposes.js +1 -1
  19. package/dist/harness/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__rimori-scenario-host__remoteEntry-_hash_.js +4 -0
  20. package/package.json +7 -7
  21. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs.js +0 -9
  22. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react__loadShare__.mjs_commonjs-proxy.js +0 -1
  23. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs.js +0 -9
  24. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.mjs.js +0 -9
  25. package/dist/harness/__mfe_internal__rimori_mf_2_scenario_mf_2_host__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy.js +0 -1
package/README.md CHANGED
@@ -18,7 +18,7 @@ npm install --save-dev @rimori/playwright-testing @playwright/test
18
18
  # or
19
19
  pnpm add -D @rimori/playwright-testing @playwright/test
20
20
  # or
21
- yarn add -D @rimori/playwright-testing @playwright/test
21
+ pnpm add -D @rimori/playwright-testing @playwright/test
22
22
  ```
23
23
 
24
24
  ## Setup Steps
@@ -43,7 +43,7 @@ Then run:
43
43
  ```bash
44
44
  npm install
45
45
  # or
46
- yarn install
46
+ pnpm install
47
47
  # or
48
48
  pnpm install
49
49
  ```
@@ -146,14 +146,14 @@ const config: RimoriPluginConfig = {
146
146
  ```bash
147
147
  npm run dev
148
148
  # or
149
- yarn dev
149
+ pnpm dev
150
150
  ```
151
151
 
152
152
  2. **Run tests** in another terminal:
153
153
  ```bash
154
154
  npm test
155
155
  # or
156
- yarn test
156
+ pnpm test
157
157
  ```
158
158
 
159
159
  ### Complete Example Setup
@@ -34,10 +34,10 @@ class MessageChannelSimulator {
34
34
  async initialize() {
35
35
  await this.page.exposeBinding('__rimoriSimulator_onHello', async () => {
36
36
  await this.setupMessageChannel();
37
- }, { handle: false });
37
+ });
38
38
  await this.page.exposeBinding('__rimoriSimulator_onPortMessage', async (_source, payload) => {
39
39
  await this.handlePortMessage(payload);
40
- }, { handle: false });
40
+ });
41
41
  await this.page.addInitScript(({ pluginId }) => {
42
42
  // Create a fake parent window object to simulate iframe environment
43
43
  // This ensures window !== window.parent (so standalone mode is NOT triggered)
@@ -55,7 +55,7 @@ export declare class RimoriTestEnvironment {
55
55
  * same dev server serves from `dist/`, so the harness page picks up the plugin's
56
56
  * Tailwind base + theme without any filesystem path resolution.
57
57
  *
58
- * Returns empty string if the plugin hasn't been built (`yarn build:scenario`)
58
+ * Returns empty string if the plugin hasn't been built (`pnpm build:scenario`)
59
59
  * or the dev server doesn't expose `/__rimori_dist_index__.html`.
60
60
  */
61
61
  private collectPluginStylesheets;
@@ -636,7 +636,7 @@ class RimoriTestEnvironment {
636
636
  * same dev server serves from `dist/`, so the harness page picks up the plugin's
637
637
  * Tailwind base + theme without any filesystem path resolution.
638
638
  *
639
- * Returns empty string if the plugin hasn't been built (`yarn build:scenario`)
639
+ * Returns empty string if the plugin hasn't been built (`pnpm build:scenario`)
640
640
  * or the dev server doesn't expose `/__rimori_dist_index__.html`.
641
641
  */
642
642
  async collectPluginStylesheets(pluginUrl) {
@@ -646,7 +646,7 @@ class RimoriTestEnvironment {
646
646
  if (!response.ok) {
647
647
  console.warn(`[rimori-harness] Plugin index.html not served at ${indexUrl} (status ${response.status}). ` +
648
648
  `Ensure the plugin's vite.config.ts middleware serves it from dist/, and that ` +
649
- `\`yarn build:scenario\` has been run.`);
649
+ `\`pnpm build:scenario\` has been run.`);
650
650
  return '';
651
651
  }
652
652
  const html = await response.text();
@@ -671,7 +671,7 @@ class RimoriTestEnvironment {
671
671
  try {
672
672
  const htmlPath = path.join(HARNESS_DIR, 'index.html');
673
673
  if (!fs.existsSync(htmlPath)) {
674
- throw new Error(`Harness bundle missing at ${HARNESS_DIR}. Run \`yarn --cwd plugins/playwright-testing build:harness\` first.`);
674
+ throw new Error(`Harness bundle missing at ${HARNESS_DIR}. Run \`pnpm --filter @rimori/playwright-testing build:harness\` first.`);
675
675
  }
676
676
  const configScript = `<script>window.__RIMORI_HARNESS__ = ${JSON.stringify({
677
677
  pluginId: this.pluginId,