-
Hello @Shelex, I'm unclear on how to get In your docs you say to do it like this for cypress 10:
But my IDE cannot find AllureWriter and it's not found when running cypress either.
TIA for any help you can give. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @pwpatton ! Actually without a context there may be multiple things that may go wrong. |
Beta Was this translation helpful? Give feedback.
-
Ok, looks like user error on my part. I was confused why in the docs A in My cypress.config.ts now looks like this and works great. Thanks @Shelex import { defineConfig } from 'cypress';
const allureWriter = require('@shelex/cypress-allure-plugin/writer');
export default defineConfig({
env: {
allure: true,
allureLogCypress: true,
allureClearSkippedTests: true
},
e2e: {
setupNodeEvents: (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) => {
allureWriter(on, config);
return config;
}
}
}); |
Beta Was this translation helpful? Give feedback.
-
Hello @Shelex and @pwpatton , I tested with the 'a' not capitalized as well and still get the error. My cypress.config.js:
and added import '@shelex/cypress-allure-plugin'; to my e2e.js file. It's returning: ReferenceError: AllureWriter is not defined |
Beta Was this translation helpful? Give feedback.
Ok, looks like user error on my part. I was confused why in the docs A in
AllureWriter
was capitalized but what I really needed to use wasallureWriter
.My cypress.config.ts now looks like this and works great. Thanks @Shelex