Cypress and TypeScript
# help
h
Cypress and TypeScript
Hey, consider having: > - /cypress > -- /integration > ---- file.spec.ts # <-- TypeScript > ---- file.spec.js # <-- JavaScript is it possible to exclude
.ts
files from being consumed by Cypress runner? I tried using
--spec "cypress/integration/*.spec.js"
CLI argument, but - from what i can see - it doesn't prevent Cypress from grabbing other
*.spec.*
files (like
.ts
ones).
Maybe
ignoreTestFiles
option is helpful in such case? https://docs.cypress.io/guides/references/configuration#Folders-Files > A String or Array of glob patterns used to ignore test files that would otherwise be shown in your list of tests. Cypress uses minimatch with the options: {dot: true, matchBase: true}. We suggest using https://globster.xyz to test what files would match.
This option doesn't seem to work
i receive
path argument is required to res.sendFile
and
.spec.ts
files are consumed despite i excluded them via
ignoreTestFiles
option
4 Views