@mpcore/test 0.1.0 → 0.1.2

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 (2) hide show
  1. package/dist/index.mjs +2 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -414,7 +414,8 @@ var MiniProgramTestProject = class {
414
414
  strictHostMocks: true
415
415
  });
416
416
  applyWxMock(session, this.options.host);
417
- const page = new HeadlessTestingPageHandle(project, session.reLaunch(route), session);
417
+ const pageInstance = session.reLaunch(route);
418
+ const page = new HeadlessTestingPageHandle(project, pageInstance, session);
418
419
  const screen = new MiniProgramScreen(page, await page.snapshot());
419
420
  const assertDiagnostics = () => {
420
421
  const errors = session.getDiagnostics().filter((entry) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mpcore/test",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "description": "Testing Library-style utilities for compiled WeChat mini-program artifacts",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "node": "^20.19.0 || >=22.12.0"
39
39
  },
40
40
  "dependencies": {
41
- "@mpcore/simulator": "0.3.0"
41
+ "@mpcore/simulator": "0.3.2"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public",