Skip to content

Commit

Permalink
Update e2e spec glob to only include actual tests (#1331)
Browse files Browse the repository at this point in the history
The e2e spec glob was grabbing all `.ts` files instead
of the intended `*.test.ts` files.  This caused problems
when cypress attempting to run a lot more tests when
a `--spec` argument was not specified.  Now, by default,
cypress will only run `*.test.ts` files.

Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 authored Feb 7, 2025
1 parent 69383c5 commit 7846be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default defineConfig({
defaultCommandTimeout: 8000,
e2e: {
testIsolation: false,
specPattern: "cypress/e2e/**/*.{js,jsx,ts,tsx}",
specPattern: "cypress/e2e/**/*.test.{js,jsx,ts,tsx}",
setupNodeEvents(on, config) {
require("./cypress/plugins/index.js")(on, config);
on("file:preprocessor", tagify(config));
Expand Down

0 comments on commit 7846be2

Please sign in to comment.