Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Jest support #5

@NimaSoroush

Description

@NimaSoroush

Hi, Wondering if there is any possibility to run niffy with Jest?
I was hoping to be able to do something like:

import Niffy from 'niffy';

describe('Header', () => {
  const basehost = 'https://www.google.com/';
  const testhost = 'https://www.google.co.uk/';

  let niffy;

  beforeAll(() => {
    niffy = new Niffy(basehost, testhost, { show: true });
  });

  afterAll(() => {
    niffy.end();
  });

  it('running visual regression tests', () => {
    niffy.goto('/?x=true');
    return niffy.test('/?x=true');
  });
});

Is there any plan for Jest support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions