You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tested it again on a empty project. Just a index.html with an h1 tag. Installed Cypress, installed Cypress Markdown Pre Processor. Configured the plugin:
I want to make use of the cypress markdown preprocessor.
After installing it with npm:
npm i -D cypress-markdown-preprocessor
and configured the plugin:
/ cypress.config.js
const { defineConfig } = require('cypress')
const mdPreprocessor = require('cypress-markdown-preprocessor')
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
on('file:preprocessor', mdPreprocessor)
return config
},
// use Markdown file from folder "docs" as tests
specPattern: 'docs/**/*.md',
},
})
I created a first test file, which I ran in Cypress. I got an error:
Can't walk dependency graph: Cannot find module in
node_modules@bahmutovcypress-fiddlesrcindex.js'
That is strange because I have this folder in my node_modules:
node_modules@bahmutov\cypress-fiddle\src\index.js
So, because there was only one place where I had to fill in a require, at the mdPreprocessor cypress config, I don't know what to do.
Olaf
The text was updated successfully, but these errors were encountered: