karma-runner / karma-runner/karma

Updating the minimatch version

Open
#3,920 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used [patch-package](https://github.com/ds300/patch-package) to patch `karma@6.4.4` for the project I'm working on.

Here is the diff that solved my problem:

```diff
diff --git a/node_modules/karma/lib/file-list.js b/node_modules/karma/lib/file-list.js
index b4ec01d..b2a4a9b 100644
--- a/node_modules/karma/lib/file-list.js
+++ b/node_modules/karma/lib/file-list.js
@@ -1,7 +1,7 @@
'use strict'

const { promisify } = require('util')
-const mm = require('minimatch')
+const mm = require('minimatch').minimatch
const Glob = require('glob').Glob
const fs = require('graceful-fs')
const statAsync = promisify(fs.stat.bind(fs))
```

This issue body was [partially generated by patch-package](https://github.com/ds300/patch-package/issues/296).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.