@diplodoc/cli-tests 5.10.0 → 5.10.2

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.
@@ -21,9 +21,9 @@ exports[`Check bundles > bundles list is correct > filelist 1`] = `
21
21
  "_bundle/search-js-1",
22
22
  "_bundle/search-js-2",
23
23
  "_search/api.js",
24
- "_search/ru/hash-resources.js",
25
24
  "_search/ru/hash-index.js",
26
25
  "_search/ru/hash-registry.js",
26
+ "_search/ru/hash-resources.js",
27
27
  "_search/ru/index.html",
28
28
  "_search/ru/language.js",
29
29
  "index.html",
@@ -55,7 +55,13 @@ export async function compareDirectories(
55
55
  filesForSnapshot = filesFromOutput.filter(file => uselessFile(file, SYSTEM_DIRS));
56
56
  }
57
57
 
58
- expect(hashless(JSON.stringify(filesForSnapshot, null, 2))).toMatchSnapshot('filelist');
58
+ // Here we sort the order of the included files after all processing
59
+ // This is necessary for better test stability
60
+ // We do not care in what order these files were received and processed
61
+ // We sort only the final list and put it in the snapshot
62
+ filesForSnapshot = filesForSnapshot.map(hashless).sort();
63
+
64
+ expect(JSON.stringify(filesForSnapshot, null, 2)).toMatchSnapshot('filelist');
59
65
 
60
66
  if (!ignoreFileContent) {
61
67
  filesFromOutput.filter(file => uselessFile(file, ['_assets/', ...SYSTEM_DIRS])).forEach((filePath) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/cli-tests",
3
- "version": "5.10.0",
3
+ "version": "5.10.2",
4
4
  "bin": {
5
5
  "diplodoc-cli-test": "bin.mjs"
6
6
  },