Merge pull request #12195 from overleaf/bg-use-glob-ignore

Change ignored file matching to use standard `minimatch` module

GitOrigin-RevId: ef8f13c039015e7bb9894441fb6170703941653c
This commit is contained in:
Brian Gough
2023-05-16 08:03:53 +00:00
committed by Copybot
parent a94f241dcb
commit e46567b696
5 changed files with 164 additions and 50 deletions
@@ -3,6 +3,7 @@ const { expect } = require('chai')
const mockFs = require('mock-fs')
const SandboxedModule = require('sandboxed-module')
const { ObjectId } = require('mongodb')
const Settings = require('@overleaf/settings')
const MODULE_PATH =
'../../../../app/src/Features/Uploads/FileSystemImportManager.js'
@@ -27,6 +28,7 @@ describe('FileSystemImportManager', function () {
requires: {
'@overleaf/settings': {
textExtensions: ['tex', 'txt'],
fileIgnorePattern: Settings.fileIgnorePattern, // use the real pattern from the default settings
},
'../Editor/EditorController': this.EditorController,
},