apify-test-tools 0.10.0 → 0.10.1-beta.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,67 +1,67 @@
1
1
  {
2
- "name": "apify-test-tools",
3
- "version": "0.10.0",
4
- "type": "module",
5
- "description": "TBD",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/apify/apify-test-tools.git"
9
- },
10
- "engines": {
11
- "node": ">=18.0.0"
12
- },
13
- "bin": {
14
- "apify-test-tools": "dist/bin/main.js"
15
- },
16
- "types": "./dist/index.d.ts",
17
- "main": "./dist/lib/lib.js",
18
- "dependencies": {
19
- "@apify/consts": "^2.43.0",
20
- "@slack/web-api": "^7.9.2",
21
- "adm-zip": "^0.6.1",
22
- "apify-client": "^2.22.2",
23
- "ignore": "^7.0.5",
24
- "yargs": "^18.0.0",
25
- "zod": "^4.6.5"
26
- },
27
- "devDependencies": {
28
- "@apify/eslint-config": "^1.0.0",
29
- "@apify/tsconfig": "^0.1.1",
30
- "@types/adm-zip": "^0.5.8",
31
- "@types/node": "^24.0.0",
32
- "@types/yargs": "^17.0.33",
33
- "eslint": "^9.29.0",
34
- "eslint-config-prettier": "^10.1.5",
35
- "globals": "^17.0.0",
36
- "husky": "^9.0.11",
37
- "knip": "^5.65.0",
38
- "lint-staged": "^15.2.2",
39
- "prettier": "^3.5.3",
40
- "tsx": "^4.20.3",
41
- "typescript": "^5.9.3",
42
- "typescript-eslint": "^8.34.1",
43
- "vitest": "^3.2.4"
44
- },
45
- "peerDependencies": {
46
- "vitest": ">=3.2.4"
47
- },
48
- "scripts": {
49
- "start": "npm run dist/bin/main.js",
50
- "start:dev": "tsx bin/main.ts --workspace local-clone",
51
- "build": "tsc && chmod +x ./dist/bin/main.js",
52
- "lint": "eslint",
53
- "lint:fix": "eslint --fix",
54
- "format": "prettier --write .",
55
- "format:check": "prettier --check .",
56
- "type-check": "tsc --noEmit",
57
- "test": "vitest run",
58
- "check-unused": "npx knip",
59
- "prepare": "husky .husky || true"
60
- },
61
- "lint-staged": {
62
- "*.js": "eslint",
63
- "*.ts": "eslint"
64
- },
65
- "author": "oklinov",
66
- "license": "ISC"
2
+ "name": "apify-test-tools",
3
+ "version": "0.10.1-beta.1",
4
+ "type": "module",
5
+ "description": "TBD",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/apify/apify-test-tools.git"
9
+ },
10
+ "engines": {
11
+ "node": ">=18.0.0"
12
+ },
13
+ "bin": {
14
+ "apify-test-tools": "dist/bin/main.js"
15
+ },
16
+ "types": "./dist/index.d.ts",
17
+ "main": "./dist/lib/lib.js",
18
+ "dependencies": {
19
+ "@apify/consts": "^2.43.0",
20
+ "@slack/web-api": "^7.9.2",
21
+ "adm-zip": "^0.6.1",
22
+ "apify-client": "^2.22.2",
23
+ "ignore": "^7.0.5",
24
+ "yargs": "^18.0.0",
25
+ "zod": "^4.6.5"
26
+ },
27
+ "devDependencies": {
28
+ "@apify/eslint-config": "^1.0.0",
29
+ "@apify/tsconfig": "^0.1.1",
30
+ "@types/adm-zip": "^0.5.8",
31
+ "@types/node": "^24.0.0",
32
+ "@types/yargs": "^17.0.33",
33
+ "eslint": "^9.29.0",
34
+ "eslint-config-prettier": "^10.1.5",
35
+ "globals": "^17.0.0",
36
+ "husky": "^9.0.11",
37
+ "knip": "^5.65.0",
38
+ "lint-staged": "^15.2.2",
39
+ "prettier": "^3.5.3",
40
+ "tsx": "^4.20.3",
41
+ "typescript": "^5.9.3",
42
+ "typescript-eslint": "^8.34.1",
43
+ "vitest": "^3.2.4"
44
+ },
45
+ "peerDependencies": {
46
+ "vitest": ">=3.2.4"
47
+ },
48
+ "scripts": {
49
+ "start": "npm run dist/bin/main.js",
50
+ "start:dev": "tsx bin/main.ts --workspace local-clone",
51
+ "build": "tsc && chmod +x ./dist/bin/main.js",
52
+ "lint": "eslint",
53
+ "lint:fix": "eslint --fix",
54
+ "format": "prettier --write .",
55
+ "format:check": "prettier --check .",
56
+ "type-check": "tsc --noEmit",
57
+ "test": "vitest run",
58
+ "check-unused": "npx knip",
59
+ "prepare": "husky .husky || true"
60
+ },
61
+ "lint-staged": {
62
+ "*.js": "eslint",
63
+ "*.ts": "eslint"
64
+ },
65
+ "author": "oklinov",
66
+ "license": "ISC"
67
67
  }
@@ -144,6 +144,21 @@ describe('getChangedFiles', () => {
144
144
  expect(gitCommandSpy).toHaveBeenCalledTimes(1);
145
145
  expect(gitCommandSpy).toHaveBeenCalledWith(`git diff --name-only ${onlySha}~..${onlySha}`);
146
146
  });
147
+
148
+ it('should return an empty list when the net diff is empty (e.g. a commit and its revert)', () => {
149
+ // Arrange
150
+ gitCommandSpy.mockReturnValue('');
151
+ const commits = [
152
+ { sha: '1'.repeat(40), author: '', date: '', message: '' },
153
+ { sha: '2'.repeat(40), author: '', date: '', message: '' },
154
+ ];
155
+
156
+ // Act
157
+ const changedFiles = getChangedFiles(commits);
158
+
159
+ // Assert
160
+ expect(changedFiles).toStrictEqual([]);
161
+ });
147
162
  });
148
163
 
149
164
  describe('hasMergeFromTarget', () => {