ic-mops 2.3.0 → 2.3.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.
@@ -54,6 +54,17 @@ describe("check", () => {
54
54
  await cliSnapshot(["check"], { cwd }, 0);
55
55
  });
56
56
 
57
+ test("canister entrypoint resolved relative to config root when run from subdirectory", async () => {
58
+ const fixtureRoot = path.join(
59
+ import.meta.dirname,
60
+ "check/canisters-subdir",
61
+ );
62
+ const subdir = path.join(fixtureRoot, "src/backend");
63
+ const result = await cli(["check"], { cwd: subdir });
64
+ expect(result.exitCode).toBe(0);
65
+ expect(result.stdout).toMatch(/✓/);
66
+ });
67
+
57
68
  test("[moc] args applied when using canister fallback", async () => {
58
69
  const cwd = path.join(import.meta.dirname, "check/canisters-moc-args");
59
70
  const result = await cli(["check"], { cwd });
Binary file
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const is_candid_compatible: (a: number, b: number, c: number, d: number) => number;
5
4
  export const add_custom_sections: (a: number, b: number, c: any) => [number, number, number, number];
5
+ export const is_candid_compatible: (a: number, b: number, c: number, d: number) => number;
6
6
  export const __wbindgen_malloc: (a: number, b: number) => number;
7
7
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
8
8
  export const __wbindgen_exn_store: (a: number) => void;
@@ -9,8 +9,8 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
9
9
 
10
10
  export interface InitOutput {
11
11
  readonly memory: WebAssembly.Memory;
12
- readonly is_candid_compatible: (a: number, b: number, c: number, d: number) => number;
13
12
  readonly add_custom_sections: (a: number, b: number, c: any) => [number, number, number, number];
13
+ readonly is_candid_compatible: (a: number, b: number, c: number, d: number) => number;
14
14
  readonly __wbindgen_malloc: (a: number, b: number) => number;
15
15
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
16
16
  readonly __wbindgen_exn_store: (a: number) => void;
Binary file
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const is_candid_compatible: (a: number, b: number, c: number, d: number) => number;
5
4
  export const add_custom_sections: (a: number, b: number, c: any) => [number, number, number, number];
5
+ export const is_candid_compatible: (a: number, b: number, c: number, d: number) => number;
6
6
  export const __wbindgen_malloc: (a: number, b: number) => number;
7
7
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
8
8
  export const __wbindgen_exn_store: (a: number) => void;