Skip to content

Commit

Permalink
fix: prepare document in setup (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Nov 28, 2021
1 parent 95b4826 commit 65be675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {clear} from './clear'
import {click, clickOptions, dblClick} from './click'
import {prepareDocument} from './document'
import {hover, unhover} from './hover'
import {createKeyboardState, keyboard, keyboardOptions} from './keyboard'
import type {keyboardState} from './keyboard/types'
Expand Down Expand Up @@ -59,7 +60,7 @@ interface SetupOptions
* All APIs returned by this function share an input device state and a default configuration.
*/
export function setup(options: SetupOptions = {}) {
// TODO: prepare our document state workarounds
prepareDocument(options.document ?? document)

return _setup(options, {
keyboardState: createKeyboardState(),
Expand Down

0 comments on commit 65be675

Please sign in to comment.