0.0.6 • Published 4 years ago

detox-take-screenshot v0.0.6

Weekly downloads
62
License
MIT
Repository
github
Last release
4 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

4 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago