Skip to content

Commit 3fbb699

Browse files
committed
Revert "Filter away specs found in node_modules"
This was recently fixed in `find-cypress-specs` [1]. [1] bahmutov/find-cypress-specs#302
1 parent d240f3b commit 3fbb699

File tree

5 files changed

+6
-58
lines changed

5 files changed

+6
-58
lines changed

lib/add-cucumber-preprocessor-plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import parse from "@cucumber/tag-expressions";
88

99
import { generateMessages } from "@cucumber/gherkin";
1010

11+
import { getSpecs } from "find-cypress-specs";
12+
1113
import { INTERNAL_PROPERTY_NAME, INTERNAL_SUITE_PROPERTIES } from "./constants";
1214

1315
import {
@@ -46,8 +48,6 @@ import { assertNever } from "./helpers/assertions";
4648

4749
import debug from "./helpers/debug";
4850

49-
import { getSpecs } from "./helpers/specs";
50-
5151
const resolve = memoize(origResolve);
5252

5353
export type AddOptions = {

lib/diagnostics/diagnose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import fs from "fs/promises";
22
import path from "path";
33
import util from "util";
4+
import { getSpecs } from "find-cypress-specs";
45
import {
56
Expression,
67
ParameterTypeRegistry,
@@ -28,7 +29,6 @@ import {
2829
getStepDefinitionPaths,
2930
} from "../step-definitions";
3031
import { notNull } from "../helpers/type-guards";
31-
import { getSpecs } from "../helpers/specs";
3232

3333
export interface DiagnosticStep {
3434
source: string;

lib/helpers/specs.ts

Lines changed: 0 additions & 52 deletions
This file was deleted.

lib/template.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { generateMessages } from "@cucumber/gherkin";
66

77
import { IdGenerator, SourceMediaType } from "@cucumber/messages";
88

9+
import { getSpecs } from "find-cypress-specs";
10+
911
import ancestor from "common-ancestor-path";
1012

1113
import { assertAndReturn } from "./helpers/assertions";
@@ -27,8 +29,6 @@ import debug from "./helpers/debug";
2729

2830
import type { CreateTestsOptions } from "./browser-runtime";
2931

30-
import { getSpecs } from "./helpers/specs";
31-
3232
const { stringify } = JSON;
3333

3434
export async function compile(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"cosmiconfig": "^9.0.0",
7575
"debug": "^4.3.6",
7676
"error-stack-parser": "^2.1.4",
77-
"find-cypress-specs": "^1.45.1",
77+
"find-cypress-specs": "^1.45.2",
7878
"glob": "^10.4.5",
7979
"is-path-inside": "^3.0.3",
8080
"mocha": "^10.7.0",

0 commit comments

Comments
 (0)