Cypress after:spec is not being triggered whereas after:run is working fine. Cypress version: 12.5.1 #27849
Unanswered
mgmpnandi
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Cypress version :12.5.1
after:run event getting triggered once the specs executions are finished but after:spec is not getting triggered at all.
Please help me urgently on this. Check my configuration below.
`import { defineConfig } from "cypress";
import { cloudPlugin } from "cypress-cloud/plugin";
let fs = require('fs');
export default defineConfig({
defaultCommandTimeout: 40000,
requestTimeout: 120000,
numTestsKeptInMemory: 5,
experimentalMemoryManagement: true,
experimentalInteractiveRunEvents: true,
retries: {
runMode: 0,
openMode: 0,
},
reporter: 'mochawesome',
reporterOptions: {
reportDir: 'cypress/results/my-test-output',
overwrite: true,
html: true,
json: true,
//timestamp: "MMddyyyy_HHMMss",
reportFilename: "report-mochawesome"
},
e2e: {
env: {},
supportFile: "cypress/support/index.ts",
testIsolation: false,
setupNodeEvents(on, config) {
},
});
`
Beta Was this translation helpful? Give feedback.
All reactions