detox-take-screenshot

0.0.6 • Public • Published

detox-take-screenshot

npm version Dependency Status devDependencies Status npm

Takes screenshot and returns a temporary file. It is meant to be used with screenshot comparison tools like jest-screenshot or jest-image-snapshot.

Getting started

$ npm i detox-take-screenshot -D

Example

import jestExpect from 'expect'
import screenshot from 'detox-take-screenshot'
 
describe('Test', () => {
  // ...
 
  it('test case', async () => {
    await jestExpect(await screenshot()).toMatchImageSnapshot()
  })
})

/detox-take-screenshot/

    Package Sidebar

    Install

    npm i detox-take-screenshot

    Weekly Downloads

    40

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    3.77 kB

    Total Files

    4

    Last publish

    Collaborators

    • iyegoroff