Cypress seems to be incorrectly picking up my Jasmine spec files when running component tests:
I import the Account Service into my toolbar.component.cy.ts
component so that I can add it to the providers array:
This is the config for Cypress:
import { defineConfig } from "cypress";
export default defineConfig({
component: {
devServer: {
framework: "angular",
bundler: "webpack",
},
specPattern: "**/*.cy.ts",
}
});
Has anyone else had this issue before? If so, how do you fix it?!
CodePudding user response:
Answered in a comment, but as we learned, it looks like you had the file imported at the top of your test file. :)