Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #357 from UziTech/renovate/glob-8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Apr 13, 2022
2 parents f16e16e + 392c3e9 commit 939c887
Show file tree
Hide file tree
Showing 3 changed files with 230 additions and 25 deletions.
4 changes: 2 additions & 2 deletions lib/create-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,15 @@ export default function createRunner(options = {}, configFunc) {
paths.forEach(testPath => {
// eslint-disable-next-line no-sync
if (fs.statSync(testPath).isDirectory()) {
const files = glob.sync(path.join(testPath, options.fileGlob)).filter(f => !f.includes("node_modules"));
const files = glob.sync(path.join(testPath, options.fileGlob).replace(/\\/g, "/")).filter(f => !f.includes("node_modules"));
jasmine3TestPaths = jasmine3TestPaths.concat(files);
for (const file of files) {
jasmine.addSpecFile(file);
require(file);
}
setSpecProperties(jasmine.env.topSuite(), path.resolve(testPath));
if (options.legacySuffix) {
legacyTestPaths = legacyTestPaths.concat(glob.sync(path.join(testPath, options.fileLegacyGlob)));
legacyTestPaths = legacyTestPaths.concat(glob.sync(path.join(testPath, options.fileLegacyGlob).replace(/\\/g, "/")));
}
} else {
if (options.fileRegexp.test(testPath)) {
Expand Down
Loading

0 comments on commit 939c887

Please sign in to comment.