Skip to content

Commit

Permalink
Filter away specs found in node_modules
Browse files Browse the repository at this point in the history
Cypress does this, however `find-cypress-specs` does not [1].

[1] bahmutov/find-cypress-specs#301
  • Loading branch information
badeball committed Sep 19, 2024
1 parent 5a11241 commit 76ef9d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ export async function compile(

const pickles = envelopes.map((envelope) => envelope.pickle).filter(notNull);

const specs = getSpecs(configuration);
// TODO: Remove once https://github.com/bahmutov/find-cypress-specs/issues/301 is resolved.
const specs = getSpecs(configuration).filter(
(spec) => !spec.startsWith("node_modules"),
);

debug(`resolved specs ${inspect(specs)}`);

Expand Down

0 comments on commit 76ef9d9

Please sign in to comment.