jest-watch-typeahead 2.2.2 → 3.0.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.
@@ -32,7 +32,7 @@ export default class FileNamePlugin {
32
32
  p.run(testPathPattern => {
33
33
  updateConfigAndRun({
34
34
  mode: 'watch',
35
- testPathPattern
35
+ testPathPatterns: [testPathPattern]
36
36
  });
37
37
  res();
38
38
  }, rej);
@@ -53,7 +53,7 @@ export default class FileNamePatternPrompt extends PatternPrompt {
53
53
  let regex;
54
54
  try {
55
55
  regex = new RegExp(pattern, 'i');
56
- } catch (e) {
56
+ } catch {
57
57
  return [];
58
58
  }
59
59
  return this._searchSources.reduce((tests, {
@@ -48,7 +48,7 @@ export const highlight = (rawPath, filePath, pattern) => {
48
48
  let regexp;
49
49
  try {
50
50
  regexp = new RegExp(pattern, 'i');
51
- } catch (e) {
51
+ } catch {
52
52
  return chalk.dim(filePath);
53
53
  }
54
54
  const strippedRawPath = stripAnsi(rawPath);
@@ -75,7 +75,7 @@ export const formatTestNameByPattern = (testName, pattern, width) => {
75
75
  let regexp;
76
76
  try {
77
77
  regexp = new RegExp(pattern, 'i');
78
- } catch (e) {
78
+ } catch {
79
79
  return chalk.dim(inlineTestName);
80
80
  }
81
81
  const match = inlineTestName.match(regexp);
@@ -46,7 +46,7 @@ export default class TestNamePatternPrompt extends PatternPrompt {
46
46
  let regex;
47
47
  try {
48
48
  regex = new RegExp(pattern, 'i');
49
- } catch (e) {
49
+ } catch {
50
50
  return [];
51
51
  }
52
52
  return this._cachedTestResults.reduce((matchedTests, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-watch-typeahead",
3
- "version": "2.2.2",
3
+ "version": "3.0.1",
4
4
  "main": "build/index.js",
5
5
  "exports": {
6
6
  ".": "./build/index.js",
@@ -26,18 +26,18 @@
26
26
  "test": "cross-env NODE_OPTIONS=\"--experimental-vm-modules\" jest",
27
27
  "lint": "eslint .",
28
28
  "prebuild": "rimraf build",
29
- "build": "babel --extensions .js,.ts src -d build && rimraf 'build/**/*.test.{js,ts},integration' 'build/**/__tests__' build/test_utils",
29
+ "build": "babel --extensions .js,.ts src -d build && rimraf --glob 'build/**/*.test.{js,ts},integration' 'build/**/__tests__' build/test_utils",
30
30
  "prepack": "yarn build",
31
31
  "format": "prettier --write \"**/*.js\" \"**/*.md\" \"**/*.ts\"",
32
- "typecheck": "yarn tsc -p ."
32
+ "typecheck": "tsc -p ."
33
33
  },
34
34
  "dependencies": {
35
- "ansi-escapes": "^6.0.0",
35
+ "ansi-escapes": "^7.0.0",
36
36
  "chalk": "^5.2.0",
37
- "jest-regex-util": "^29.0.0",
38
- "jest-watcher": "^29.0.0",
37
+ "jest-regex-util": "^30.0.0",
38
+ "jest-watcher": "^30.0.0",
39
39
  "slash": "^5.0.0",
40
- "string-length": "^5.0.1",
40
+ "string-length": "^6.0.0",
41
41
  "strip-ansi": "^7.0.1"
42
42
  },
43
43
  "devDependencies": {
@@ -45,32 +45,33 @@
45
45
  "@babel/core": "^7.9.6",
46
46
  "@babel/preset-env": "^7.9.6",
47
47
  "@babel/preset-typescript": "^7.10.4",
48
- "@jest/globals": "^29.0.0",
49
- "@jest/types": "^29.0.0",
48
+ "@eslint/js": "^9.29.0",
49
+ "@jest/globals": "^30.0.0",
50
+ "@jest/types": "^30.0.0",
50
51
  "@semantic-release/changelog": "^6.0.1",
51
52
  "@semantic-release/git": "^10.0.1",
52
- "@types/node": "^14.0.0",
53
- "@typescript-eslint/eslint-plugin": "^5.0.0",
54
- "@typescript-eslint/parser": "^5.0.0",
55
- "babel-jest": "^29.0.0",
53
+ "@types/node": "^18.19.111",
54
+ "babel-jest": "^30.0.0",
56
55
  "babel-plugin-add-import-extension": "^1.6.0",
57
56
  "cross-env": "^7.0.3",
58
- "eslint": "^8.0.0",
59
- "eslint-config-airbnb-base": "^15.0.0",
60
- "eslint-config-prettier": "^8.0.0",
61
- "eslint-plugin-import": "^2.20.2",
62
- "eslint-plugin-jest": "^27.0.0",
63
- "eslint-plugin-prettier": "^4.0.0",
64
- "jest": "^29.0.0",
65
- "jest-serializer-ansi-escapes": "^2.0.1",
66
- "prettier": "^2.1.1",
67
- "rimraf": "^3.0.2",
68
- "semantic-release": "^20.0.0",
57
+ "eslint": "^9.0.0",
58
+ "eslint-config-prettier": "^10.0.0",
59
+ "eslint-import-resolver-typescript": "^4.4.3",
60
+ "eslint-plugin-import-x": "^4.15.2",
61
+ "eslint-plugin-jest": "^29.0.0",
62
+ "eslint-plugin-prettier": "^5.0.1",
63
+ "globals": "^16.2.0",
64
+ "jest": "^30.0.0",
65
+ "jest-serializer-ansi-escapes": "^4.0.0",
66
+ "prettier": "^3.1.0",
67
+ "rimraf": "^6.0.1",
68
+ "semantic-release": "^24.0.0",
69
69
  "semver": "^7.3.5",
70
- "typescript": "^4.0.2"
70
+ "typescript": "^5.0.4",
71
+ "typescript-eslint": "^8.0.0"
71
72
  },
72
73
  "peerDependencies": {
73
- "jest": "^27.0.0 || ^28.0.0 || ^29.0.0"
74
+ "jest": "^30.0.0"
74
75
  },
75
76
  "jest": {
76
77
  "extensionsToTreatAsEsm": [
@@ -94,12 +95,9 @@
94
95
  ]
95
96
  },
96
97
  "engines": {
97
- "node": "^14.17.0 || ^16.10.0 || >=18.0.0"
98
+ "node": ">=18.0.0"
98
99
  },
99
100
  "release": {
100
- "branches": [
101
- "main"
102
- ],
103
101
  "plugins": [
104
102
  "@semantic-release/commit-analyzer",
105
103
  "@semantic-release/release-notes-generator",
@@ -109,8 +107,8 @@
109
107
  "@semantic-release/github"
110
108
  ]
111
109
  },
112
- "packageManager": "yarn@3.3.1",
110
+ "packageManager": "yarn@4.9.2",
113
111
  "resolutions": {
114
- "ansi-escapes/type-fest": "^3.0.0"
112
+ "ansi-escapes/type-fest": "^4.0.0"
115
113
  }
116
114
  }