@mcqj/vexflow 0.0.1-alpha.6 → 0.0.1-alpha.8
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/README.md +21 -1
- package/build/cjs/vexflow-bravura.js +1 -1
- package/build/cjs/vexflow-bravura.js.map +1 -1
- package/build/cjs/vexflow-core.js +1 -1
- package/build/cjs/vexflow-core.js.map +1 -1
- package/build/cjs/vexflow-debug-with-tests.js +333 -362
- package/build/cjs/vexflow-debug-with-tests.js.map +1 -1
- package/build/cjs/vexflow-debug.js +185 -209
- package/build/cjs/vexflow-debug.js.map +1 -1
- package/build/cjs/vexflow.js +1 -1
- package/build/cjs/vexflow.js.map +1 -1
- package/build/esm/src/formatter.js +77 -20
- package/build/esm/src/tickcontext.js +6 -0
- package/build/esm/src/version.js +3 -3
- package/build/esm/tests/formatter_tests.js +49 -4
- package/build/types/src/formatter.d.ts +14 -0
- package/build/types/src/tickcontext.d.ts +11 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -74,6 +74,12 @@ Run the complete Vitest suite once:
|
|
|
74
74
|
npm test
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
+
*or*
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
npm run dev:nocache # rebuilds the node_modules cache for a clean run
|
|
81
|
+
```
|
|
82
|
+
|
|
77
83
|
Run Vitest in watch mode while developing:
|
|
78
84
|
|
|
79
85
|
```sh
|
|
@@ -93,7 +99,21 @@ Update committed visual baselines deliberately after reviewing an intentional re
|
|
|
93
99
|
npm run test:visual:update
|
|
94
100
|
```
|
|
95
101
|
|
|
96
|
-
|
|
102
|
+
To update only the snapshots exercised by one named Playwright test, pass its title to `-g`. For example, update the Barline visual cases:
|
|
103
|
+
|
|
104
|
+
```sh
|
|
105
|
+
npx playwright test -g 'matches source-rendered barline cases' --update-snapshots
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Inspect the changed PNG files with `git diff` before committing them. A title can cover multiple screenshots, so prefer the most specific test title available and never update baselines for an unexplained difference.
|
|
109
|
+
|
|
110
|
+
Playwright stores failure artifacts in `build/playwright-artifacts/`, including expected, actual, and pixel-diff images. Each run also writes an HTML report to `build/playwright-report/`:
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
npx playwright show-report build/playwright-report
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
The committed snapshots are macOS Chromium baselines, and CI runs the visual suite on macOS to match them.
|
|
97
117
|
|
|
98
118
|
The legacy reference-image workflow generates images with the Playwright backend:
|
|
99
119
|
|