jest-watch-typeahead 3.0.0 → 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.
@@ -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/filename.js CHANGED
@@ -1,2 +1 @@
1
- // eslint-disable-next-line no-restricted-exports
2
1
  export { default } from './build/file_name_plugin/plugin.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-watch-typeahead",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "main": "build/index.js",
5
5
  "exports": {
6
6
  ".": "./build/index.js",
@@ -29,15 +29,15 @@
29
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
37
  "jest-regex-util": "^30.0.0",
38
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,29 +45,30 @@
45
45
  "@babel/core": "^7.9.6",
46
46
  "@babel/preset-env": "^7.9.6",
47
47
  "@babel/preset-typescript": "^7.10.4",
48
+ "@eslint/js": "^9.29.0",
48
49
  "@jest/globals": "^30.0.0",
49
50
  "@jest/types": "^30.0.0",
50
51
  "@semantic-release/changelog": "^6.0.1",
51
52
  "@semantic-release/git": "^10.0.1",
52
53
  "@types/node": "^18.19.111",
53
- "@typescript-eslint/eslint-plugin": "^5.0.0",
54
- "@typescript-eslint/parser": "^5.0.0",
55
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",
57
+ "eslint": "^9.0.0",
60
58
  "eslint-config-prettier": "^10.0.0",
61
- "eslint-plugin-import": "^2.20.2",
62
- "eslint-plugin-jest": "^27.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",
63
62
  "eslint-plugin-prettier": "^5.0.1",
63
+ "globals": "^16.2.0",
64
64
  "jest": "^30.0.0",
65
- "jest-serializer-ansi-escapes": "^3.0.0",
65
+ "jest-serializer-ansi-escapes": "^4.0.0",
66
66
  "prettier": "^3.1.0",
67
- "rimraf": "^5.0.0",
67
+ "rimraf": "^6.0.1",
68
68
  "semantic-release": "^24.0.0",
69
69
  "semver": "^7.3.5",
70
- "typescript": "^5.0.4"
70
+ "typescript": "^5.0.4",
71
+ "typescript-eslint": "^8.0.0"
71
72
  },
72
73
  "peerDependencies": {
73
74
  "jest": "^30.0.0"
@@ -106,8 +107,8 @@
106
107
  "@semantic-release/github"
107
108
  ]
108
109
  },
109
- "packageManager": "yarn@3.8.7",
110
+ "packageManager": "yarn@4.9.2",
110
111
  "resolutions": {
111
- "ansi-escapes/type-fest": "^3.0.0"
112
+ "ansi-escapes/type-fest": "^4.0.0"
112
113
  }
113
114
  }
package/testname.js CHANGED
@@ -1,2 +1 @@
1
- // eslint-disable-next-line no-restricted-exports
2
1
  export { default } from './build/test_name_plugin/plugin.js';