@jsenv/snapshot 2.16.6 → 2.17.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/snapshot",
3
- "version": "2.16.6",
3
+ "version": "2.17.1",
4
4
  "description": "Snapshot testing",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,19 +26,19 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@jsenv/assert": "4.5.5",
29
- "@jsenv/ast": "6.7.20",
29
+ "@jsenv/ast": "6.7.21",
30
30
  "@jsenv/exception": "1.2.1",
31
- "@jsenv/filesystem": "4.15.14",
32
- "@jsenv/humanize": "1.7.5",
33
- "@jsenv/terminal-recorder": "1.5.35",
31
+ "@jsenv/filesystem": "4.15.15",
32
+ "@jsenv/humanize": "1.7.6",
33
+ "@jsenv/terminal-recorder": "1.5.36",
34
34
  "@jsenv/url-meta": "8.5.7",
35
- "@jsenv/urls": "2.9.7",
35
+ "@jsenv/urls": "2.9.8",
36
36
  "@jsenv/utils": "2.3.1",
37
37
  "ansi-regex": "6.2.2",
38
38
  "pixelmatch": "7.1.0",
39
39
  "pngjs": "7.0.0",
40
40
  "prettier": "3.8.1",
41
- "strip-ansi": "7.1.2"
41
+ "strip-ansi": "7.2.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@jsenv/assert": "../assert",
@@ -148,9 +148,12 @@ export const snapshotTests = async (
148
148
  const scenarioDirs = [];
149
149
  const scenarioIgnoreActions = {};
150
150
  const testToExecuteArray = [];
151
+ let testIndex = 0;
151
152
  for (const testRegistered of testArray) {
152
153
  const { scenario, only } = testRegistered;
153
- const scenarioFilename = asValidFilename(scenario);
154
+ let scenarioFilename = asValidFilename(scenario);
155
+ scenarioFilename = `${testIndex}_${scenarioFilename}`;
156
+ testIndex++;
154
157
  scenarioDirs.push(scenarioFilename);
155
158
  const generateScenarioOutFileUrl = (outFilename) => {
156
159
  return generateOutFileUrl(`${scenarioFilename}/${outFilename}`);