-
Notifications
You must be signed in to change notification settings - Fork 2
Description
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
[email protected]'
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