Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depends too much on the test runner/mocha #1

Open
olpeh opened this issue Nov 12, 2018 · 0 comments
Open

Depends too much on the test runner/mocha #1

olpeh opened this issue Nov 12, 2018 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@olpeh
Copy link
Owner

olpeh commented Nov 12, 2018

As an example, this does not work:

const visualRegression = require('visual-regression');

const viewportConfigs = [
  {
    width: 800,
    height: 600
  },
  {
    width: 1024,
    height: 768
  }
];

const run = () => {
  const options = {
    baseUrl: 'https://olpe.fi',
    testPaths: ['/', '/contact/'],
    viewportConfigs,
    baseScreenshotDirPath: 'visual-regression-screenshots',
    goldenScreenshotDirName: 'golden',
    testScreenshotDirName: 'test'
  };
  visualRegression.testVisualRegressions(options);
};

run();

and then calling node test.js fails with:

ReferenceError: describe is not defined
@olpeh olpeh added bug Something isn't working help wanted Extra attention is needed labels Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant