@alwaysmeticulous/cli 2.17.0 → 2.18.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.
@@ -24,12 +24,9 @@ const sortResults = ({ results: unsorted_, testCases }) => {
24
24
  return results;
25
25
  };
26
26
  exports.sortResults = sortResults;
27
- const getTestsToRun = async ({ testCases, cachedTestRunResults, client, baseCommitSha, }) => {
28
- const uncachedTestCases = testCases.filter(({ sessionId, baseReplayId, title }) => !cachedTestRunResults.find((cached) => cached.sessionId === sessionId &&
29
- cached.baseReplayId === baseReplayId &&
30
- cached.title === title));
31
- const testCasesMissingBaseReplayId = uncachedTestCases.filter((testCase) => testCase.baseReplayId == null);
32
- const testCasesWithBaseReplayId = uncachedTestCases.flatMap((testCase) => (testCase.baseReplayId == null ? [] : [testCase]));
27
+ const getTestsToRun = async ({ testCases, client, baseCommitSha, }) => {
28
+ const testCasesMissingBaseReplayId = testCases.filter((testCase) => testCase.baseReplayId == null);
29
+ const testCasesWithBaseReplayId = testCases.flatMap((testCase) => testCase.baseReplayId == null ? [] : [testCase]);
33
30
  if (testCasesMissingBaseReplayId.length === 0) {
34
31
  return testCasesWithBaseReplayId;
35
32
  }
@@ -44,7 +41,7 @@ const getTestsToRun = async ({ testCases, cachedTestRunResults, client, baseComm
44
41
  client,
45
42
  baseCommitSha,
46
43
  });
47
- return uncachedTestCases.flatMap((test) => {
44
+ return testCases.flatMap((test) => {
48
45
  if (test.baseReplayId != null) {
49
46
  return [test];
50
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/cli",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "The Meticulous CLI",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -76,5 +76,5 @@
76
76
  "bugs": {
77
77
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
78
78
  },
79
- "gitHead": "bdb9bbca2ccca357bbe12f579403d8cc0857562e"
79
+ "gitHead": "e68c633f098e5c51f02f19ed533c4267f04539bb"
80
80
  }