fix(jsdoc-core): mock fs correctly in config tests

This commit is contained in:
Jeff Williams 2023-09-02 15:04:49 -07:00
parent 418b5335ea
commit 1e23b7e61f
No known key found for this signature in database

View File

@ -13,10 +13,10 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
import mockFs from 'mock-fs'; // eslint-disable-line simple-import-sort/imports
import { defaultLoaders } from 'cosmiconfig';
import mockFs from 'mock-fs';
import * as config from '../../../lib/config.js'; // eslint-disable-line sort-imports
import * as config from '../../../lib/config.js';
describe('@jsdoc/core/lib/config', () => {
// Ensure that YAML parser is loaded before we run any tests. `cosmiconfig` tries to load it