@jsenv/snapshot 2.16.6 → 2.17.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.
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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}`);
|