@blazediff/bun 1.1.1 → 1.1.3
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.
- package/package.json +2 -2
- package/dist/index.d.mts +0 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blazediff/bun",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Bun test matcher for visual regression testing with blazediff",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"homepage": "https://blazediff.dev",
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@blazediff/matcher": "1.
|
|
36
|
+
"@blazediff/matcher": "1.2.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/bun": "^1.2.10",
|
package/dist/index.d.mts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { MatcherOptions } from '@blazediff/matcher';
|
|
2
|
-
export { ComparisonResult, ImageInput, MatcherOptions } from '@blazediff/matcher';
|
|
3
|
-
|
|
4
|
-
declare module "bun:test" {
|
|
5
|
-
interface Matchers<T> {
|
|
6
|
-
/**
|
|
7
|
-
* Compare an image against a stored snapshot.
|
|
8
|
-
*
|
|
9
|
-
* On first run, creates a new snapshot.
|
|
10
|
-
* On subsequent runs, compares against the stored snapshot.
|
|
11
|
-
*
|
|
12
|
-
* @param options - Matcher options including comparison method and thresholds
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* // Compare file path
|
|
17
|
-
* await expect('/path/to/screenshot.png').toMatchImageSnapshot({
|
|
18
|
-
* method: 'bin',
|
|
19
|
-
* failureThreshold: 100,
|
|
20
|
-
* failureThresholdType: 'pixel',
|
|
21
|
-
* });
|
|
22
|
-
*
|
|
23
|
-
* // Compare image buffer
|
|
24
|
-
* await expect({
|
|
25
|
-
* data: imageBuffer,
|
|
26
|
-
* width: 800,
|
|
27
|
-
* height: 600
|
|
28
|
-
* }).toMatchImageSnapshot({
|
|
29
|
-
* method: 'ssim',
|
|
30
|
-
* failureThreshold: 0.01,
|
|
31
|
-
* failureThresholdType: 'percent',
|
|
32
|
-
* });
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
toMatchImageSnapshot(options?: Partial<MatcherOptions>): Promise<T>;
|
|
36
|
-
}
|
|
37
|
-
interface AsymmetricMatchers {
|
|
38
|
-
toMatchImageSnapshot(options?: Partial<MatcherOptions>): void;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Setup blazediff matchers for Bun test
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```typescript
|
|
47
|
-
* // In your test file
|
|
48
|
-
* import { setupBlazediffMatchers } from '@blazediff/bun';
|
|
49
|
-
* setupBlazediffMatchers();
|
|
50
|
-
*
|
|
51
|
-
* // Or just import the package (auto-setup)
|
|
52
|
-
* import '@blazediff/bun';
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
declare function setupBlazediffMatchers(): void;
|
|
56
|
-
|
|
57
|
-
export { setupBlazediffMatchers as default, setupBlazediffMatchers };
|