Skip to content

Commit

Permalink
feat: add logging to synpress.config.js
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Oct 7, 2022
1 parent 6035b37 commit c851ea1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions synpress.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
const log = require('debug')('synpress:config');
const path = require('path');
const packageJson = require('./package.json');
const { defineConfig } = require('cypress');
const setupNodeEvents = require(`${getSynpressPath()}/plugins/index`);
const fixturesFolder = `${getSynpressPath()}/fixtures`;
const synpressPath = getSynpressPath();
log(`Detected synpress root path is: ${synpressPath}`);
const pluginsPath = `${synpressPath}/plugins/index`;
log(`Detected synpress plugin path is: ${pluginsPath}`);
const setupNodeEvents = require(pluginsPath);
const fixturesFolder = `${synpressPath}/fixtures`;
log(`Detected synpress fixtures path is: ${fixturesFolder}`);
const supportFile = 'tests/e2e/support.js';

module.exports = defineConfig({
Expand Down

0 comments on commit c851ea1

Please sign in to comment.