vitest-plugin-vis 3.1.0 → 3.2.0

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.
@@ -1,5 +1,6 @@
1
1
  import type { VisOptions } from '../config/types.ts';
2
2
  import type { PartialBrowserCommandContext } from './vis_server_context.types.ts';
3
3
  export declare function resolveSnapshotRootDir(browserCommandContext: PartialBrowserCommandContext, options: VisOptions): string;
4
+ export declare function getSnapshotRootDir(snapshotRootDir: string): string;
4
5
  export declare function getSnapshotSubpath(suiteName: string, options: Pick<VisOptions, 'snapshotSubpath'>): string;
5
6
  //# sourceMappingURL=snapshot_path.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"snapshot_path.d.ts","sourceRoot":"","sources":["../../src/server/snapshot_path.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAGpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAA;AAEjF,wBAAgB,sBAAsB,CAAC,qBAAqB,EAAE,4BAA4B,EAAE,OAAO,EAAE,UAAU,UAY9G;AAMD,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,UAGjG"}
1
+ {"version":3,"file":"snapshot_path.d.ts","sourceRoot":"","sources":["../../src/server/snapshot_path.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAGpD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAA;AAEjF,wBAAgB,sBAAsB,CAAC,qBAAqB,EAAE,4BAA4B,EAAE,OAAO,EAAE,UAAU,UAY9G;AAED,wBAAgB,kBAAkB,CAAC,eAAe,EAAE,MAAM,UAEzD;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,UAGjG"}
@@ -17,7 +17,7 @@ export function resolveSnapshotRootDir(browserCommandContext, options) {
17
17
  screenshotDirectory: browserCommandContext.provider.options?.screenshotDirectory,
18
18
  });
19
19
  }
20
- function getSnapshotRootDir(snapshotRootDir) {
20
+ export function getSnapshotRootDir(snapshotRootDir) {
21
21
  return `${snapshotRootDir}/${ci ? platform : 'local'}`;
22
22
  }
23
23
  export function getSnapshotSubpath(suiteName, options) {
@@ -1,3 +1,4 @@
1
+ export { getSnapshotRootDir } from './server/snapshot_path.ts';
1
2
  export * from './shared/constants.ts';
2
3
  export * from './shared/trim_common_folder.ts';
3
4
  //# sourceMappingURL=server-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server-utils.d.ts","sourceRoot":"","sources":["../src/server-utils.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,gCAAgC,CAAA"}
1
+ {"version":3,"file":"server-utils.d.ts","sourceRoot":"","sources":["../src/server-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,cAAc,uBAAuB,CAAA;AACrC,cAAc,gCAAgC,CAAA"}
@@ -1,2 +1,3 @@
1
+ export { getSnapshotRootDir } from "./server/snapshot_path.js";
1
2
  export * from "./shared/constants.js";
2
3
  export * from "./shared/trim_common_folder.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest-plugin-vis",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Vitest visual testing plugin",
5
5
  "keywords": [
6
6
  "image-snapshot",
@@ -19,7 +19,7 @@ export function resolveSnapshotRootDir(browserCommandContext: PartialBrowserComm
19
19
  })
20
20
  }
21
21
 
22
- function getSnapshotRootDir(snapshotRootDir: string) {
22
+ export function getSnapshotRootDir(snapshotRootDir: string) {
23
23
  return `${snapshotRootDir}/${ci ? platform : 'local'}`
24
24
  }
25
25
 
@@ -1,2 +1,3 @@
1
+ export { getSnapshotRootDir } from './server/snapshot_path.ts'
1
2
  export * from './shared/constants.ts'
2
3
  export * from './shared/trim_common_folder.ts'