0.0.6 • Published 6 years ago

detox-take-screenshot v0.0.6

Weekly downloads
62
License
MIT
Repository
github
Last release
6 years ago

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()
  })
})
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago